of static method

PrepSchoolStudent of({
  1. IReliveItContact? creator,
  2. required DateTime? dateCreated,
  3. ITaskFactForMModel? assistedTask,
  4. bool? isActive = false,
  5. required MKey? contactKey,
  6. required IPrepSchool? school,
  7. String? graduatingClass,
})

Implementation

static PrepSchoolStudent of({
  IReliveItContact? creator,
  required DateTime? dateCreated,
  ITaskFactForMModel? assistedTask,
  bool? isActive = false,
  required MKey? contactKey,
  required IPrepSchool? school,
  String? graduatingClass
  }) {
  final self = PrepSchoolStudent(<String, dynamic>{}, mtype: PrepSchoolStudentRef, update: true);
  if (creator != null) self.creator = creator;
  if (dateCreated != null) self.dateCreated = dateCreated;
  if (assistedTask != null) self.assistedTask = assistedTask;
  if (isActive != null) self.isActive = isActive;
  if (contactKey != null) self.contactKey = contactKey;
  if (school != null) self.school = school;
  if (graduatingClass != null) self.graduatingClass = graduatingClass;
  return self;
}