toMapWithId method

Map toMapWithId()

convert Schema with id to serializable dynamic map (used internally)

Implementation

Map<dynamic, dynamic> toMapWithId() {
  var data = toMap();
  data.addAll({'_id': id});
  return data;
}