of static method

FamilyAssociation of({
  1. IReliveItContact? creator,
  2. required DateTime? dateCreated,
  3. ITaskFactForMModel? assistedTask,
  4. bool? isActive = false,
  5. required MKey? contactKey,
  6. required IFamily? family,
  7. List<MKey>? associatedPhases,
  8. String? connectionType,
  9. String? connectionLabel,
  10. String? connectionNotes,
  11. 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;
}