mapForObjectCreation method

Map<String, dynamic> mapForObjectCreation()

Returns a map of all the properties of the item without the id that must not be sent to the server when creating a new item

Implementation

Map<String, dynamic> mapForObjectCreation() {
  return toMap()..remove("id");
}