of static method

Memory of({
  1. IReliveItContact? creator,
  2. required DateTime? dateCreated,
  3. ITaskFactForMModel? assistedTask,
  4. List<MKey>? contactKeys,
  5. List<MKey>? possessions,
  6. List<MKey>? organizations,
  7. List<MKey>? pets,
  8. List<MKey>? traditions,
  9. List<MKey>? traits,
  10. FlexiDate? memoryDate,
  11. required String? memory,
  12. List<IImageContent>? photos,
  13. List<IVideoContent>? videos,
  14. IPhysicalLocation? location,
  15. String? details,
})

Implementation

static Memory of(
    {IReliveItContact? creator,
    required DateTime? dateCreated,
    ITaskFactForMModel? assistedTask,
    List<MKey>? contactKeys,
    List<MKey>? possessions,
    List<MKey>? organizations,
    List<MKey>? pets,
    List<MKey>? traditions,
    List<MKey>? traits,
    FlexiDate? memoryDate,
    required String? memory,
    List<IImageContent>? photos,
    List<IVideoContent>? videos,
    IPhysicalLocation? location,
    String? details}) {
  final self = Memory(<String, dynamic>{}, mtype: MemoryRef, update: true);
  if (creator != null) self.creator = creator;
  if (dateCreated != null) self.dateCreated = dateCreated;
  if (assistedTask != null) self.assistedTask = assistedTask;
  if (contactKeys != null) self.contactKeys = contactKeys;
  if (possessions != null) self.possessions = possessions;
  if (organizations != null) self.organizations = organizations;
  if (pets != null) self.pets = pets;
  if (traditions != null) self.traditions = traditions;
  if (traits != null) self.traits = traits;
  if (memoryDate != null) self.memoryDate = memoryDate;
  if (memory != null) self.memory = memory;
  if (photos != null) self.photos = photos;
  if (videos != null) self.videos = videos;
  if (location != null) self.location = location;
  if (details != null) self.details = details;
  return self;
}