dart map other way around code example
Example 1: flutter map dynamic
Map<String, dynamic> var = {'item': 0, 'name': 'John'}
Example 2: dart object to map
class Human {
String name;
int age;
Map<String, dynamic> toMap() {
return {
'name': name,
'age': age,
};
}
}