toMapWithId method
convert Schema with id to serializable dynamic map (used internally)
Implementation
Map<dynamic, dynamic> toMapWithId() {
var data = toMap();
data.addAll({'_id': id});
return data;
}
convert Schema with id to serializable dynamic map (used internally)
Map<dynamic, dynamic> toMapWithId() {
var data = toMap();
data.addAll({'_id': id});
return data;
}