of static method

Pet of({
  1. IReliveItContact? creator,
  2. required DateTime? dateCreated,
  3. ITaskFactForMModel? assistedTask,
  4. required MKey? contactKey,
  5. FlexiDate? birthday,
  6. required String? name,
  7. List<IImageContent>? photos,
  8. String? petType,
  9. String? info,
})

Implementation

static Pet of(
    {IReliveItContact? creator,
    required DateTime? dateCreated,
    ITaskFactForMModel? assistedTask,
    required MKey? contactKey,
    FlexiDate? birthday,
    required String? name,
    List<IImageContent>? photos,
    String? petType,
    String? info}) {
  final self = Pet(<String, dynamic>{}, mtype: PetRef, update: true);
  if (creator != null) self.creator = creator;
  if (dateCreated != null) self.dateCreated = dateCreated;
  if (assistedTask != null) self.assistedTask = assistedTask;
  if (contactKey != null) self.contactKey = contactKey;
  if (birthday != null) self.birthday = birthday;
  if (name != null) self.name = name;
  if (photos != null) self.photos = photos;
  if (petType != null) self.petType = petType;
  if (info != null) self.info = info;
  return self;
}