of static method

Congregant of({
  1. IReliveItContact? creator,
  2. required DateTime? dateCreated,
  3. ITaskFactForMModel? assistedTask,
  4. bool? isActive = false,
  5. required MKey? contactKey,
  6. required IChurch? church,
  7. String? churchPosition,
})

Implementation

static Congregant of({
  IReliveItContact? creator,
  required DateTime? dateCreated,
  ITaskFactForMModel? assistedTask,
  bool? isActive = false,
  required MKey? contactKey,
  required IChurch? church,
  String? churchPosition
  }) {
  final self = Congregant(<String, dynamic>{}, mtype: CongregantRef, 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 (church != null) self.church = church;
  if (churchPosition != null) self.churchPosition = churchPosition;
  return self;
}