convertFromPublicPartial method
Converts the given object from the public partial format.
value
the object to convert from the public partial format. Returns the initial object.
Implementation
Map<String, dynamic>? convertFromPublicPartial(Map<String, dynamic>? item) {
if (item != null) {
if (item['id'] != null) {
item['_id'] = item['_id'] ?? item['id'];
item.remove('id');
}
}
return item;
}