fromMap static method

TaskEntity? fromMap(
  1. Map snap, {
  2. Map<String, String>? newDocumentIds,
})

Implementation

static TaskEntity? fromMap(Map snap, {Map<String, String>? newDocumentIds}) {
  String? identifier = snap["identifier"];
  var mapper = TaskModelRegistry.registry()!.getMapper(identifier);
  if (mapper != null) {
    return mapper.fromMap(snap);
  }

  return null;
}