Flutter Asign Class для карты

class Human {
  String name;
  int age;

  Map<String, dynamic> toMap() {
    return {
      'name': name,
      'age': age,
    };
  }
}
// Credit:  Lazy Leopard 
The Biton