of static method
FamilyAssociation
of(
{ - IReliveItContact? creator,
- required DateTime? dateCreated,
- ITaskFactForMModel? assistedTask,
- bool? isActive = false,
- required MKey? contactKey,
- required IFamily? family,
- List<MKey>? associatedPhases,
- String? connectionType,
- String? connectionLabel,
- String? connectionNotes,
- FlexiDate? meetDate,
})
Implementation
static FamilyAssociation of(
{IReliveItContact? creator,
required DateTime? dateCreated,
ITaskFactForMModel? assistedTask,
bool? isActive = false,
required MKey? contactKey,
required IFamily? family,
List<MKey>? associatedPhases,
String? connectionType,
String? connectionLabel,
String? connectionNotes,
FlexiDate? meetDate}) {
final self = FamilyAssociation(<String, dynamic>{}, mtype: FamilyAssociationRef, 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 (family != null) self.family = family;
if (associatedPhases != null) self.associatedPhases = associatedPhases;
if (connectionType != null) self.connectionType = connectionType;
if (connectionLabel != null) self.connectionLabel = connectionLabel;
if (connectionNotes != null) self.connectionNotes = connectionNotes;
if (meetDate != null) self.meetDate = meetDate;
return self;
}