将对象转换为Map
@override Map<String, dynamic> toMap() { var map = <String, dynamic>{ "id": id, "name": name, }; return map; }
Map<String, dynamic> toMap();