of static method

PrepSchool of({
  1. required String? name,
  2. List<IPhase>? phases,
  3. List<MKey>? parent,
  4. String? mascot,
  5. String? initials,
  6. IPhysicalLocation? address,
})

Implementation

static PrepSchool of({
  required String? name,
  IImageContent? logo,
  List<IPhase>? phases,
  List<MKey>? parent,
  String? mascot,
  String? initials,
  IPhysicalLocation? address
  }) {
  final self = PrepSchool(<String, dynamic>{}, mtype: PrepSchoolRef, update: true);
  if (name != null) self.name = name;
  if (logo != null) self.logo = logo;
  if (phases != null) self.phases = phases;
  if (parent != null) self.parent = parent;
  if (mascot != null) self.mascot = mascot;
  if (initials != null) self.initials = initials;
  if (address != null) self.address = address;
  return self;
}