of static method
Employee
of({
- IReliveItContact? creator,
- required DateTime? dateCreated,
- ITaskFactForMModel? assistedTask,
- bool? isActive = false,
- required MKey? contactKey,
- required IEmployer? company,
- String? position,
- IPhoneWithExtension? workPhone,
- FlexiDate? startDate,
- FlexiDate? endDate,
Implementation
static Employee of({
IReliveItContact? creator,
required DateTime? dateCreated,
ITaskFactForMModel? assistedTask,
bool? isActive = false,
required MKey? contactKey,
required IEmployer? company,
String? position,
IPhoneWithExtension? workPhone,
FlexiDate? startDate,
FlexiDate? endDate
}) {
final self = Employee(<String, dynamic>{}, mtype: EmployeeRef, 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 (company != null) self.company = company;
if (position != null) self.position = position;
if (workPhone != null) self.workPhone = workPhone;
if (startDate != null) self.startDate = startDate;
if (endDate != null) self.endDate = endDate;
return self;
}