of static method

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

Implementation

static College of({
  required String? name,
  IImageContent? logo,
  List<IPhase>? phases,
  List<MKey>? parent,
  String? shortName,
  String? mascot,
  IPhysicalLocation? address
  }) {
  final self = College(<String, dynamic>{}, mtype: CollegeRef, 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 (shortName != null) self.shortName = shortName;
  if (mascot != null) self.mascot = mascot;
  if (address != null) self.address = address;
  return self;
}