save method

Future save()

Implementation

Future<dynamic> save() async {
  if ((await mergeAndValidate()) == null) {
    return null;
  }

  return await Collection.get(id: getCollection()).saveModel(this);
}