toMap method

  1. @override
Map<String, Object?> toMap()
override

model -> map

Implementation

@override
Map<String, Object?> toMap() {
  return {
    'name': name,
    'pt': pt?.toMap(),
    'address': address,
    'uid': uid,
    'province': province,
    'city': city,
  };
}