of static method

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

Implementation

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