of static method

ContactInterests of({
  1. IReliveItContact? creator,
  2. required DateTime? dateCreated,
  3. ITaskFactForMModel? assistedTask,
  4. required MKey? contactKey,
  5. List<String>? interests,
})

Implementation

static ContactInterests of(
    {IReliveItContact? creator,
    required DateTime? dateCreated,
    ITaskFactForMModel? assistedTask,
    required MKey? contactKey,
    List<String>? interests}) {
  final self = ContactInterests(<String, dynamic>{},
      mtype: ContactInterestsRef, update: true);
  if (creator != null) self.creator = creator;
  if (dateCreated != null) self.dateCreated = dateCreated;
  if (assistedTask != null) self.assistedTask = assistedTask;
  if (contactKey != null) self.contactKey = contactKey;
  if (interests != null) self.interests = interests;
  return self;
}