Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR DART

dart object to map

class Human {
  String name;
  int age;

  Map<String, dynamic> toMap() {
    return {
      'name': name,
      'age': age,
    };
  }
}
 
PREVIOUS NEXT
Tagged: #dart #object #map
ADD COMMENT
Topic
Name
5+8 =