of static method

Gift of({
  1. IReliveItContact? creator,
  2. required DateTime? dateCreated,
  3. ITaskFactForMModel? assistedTask,
  4. String? occasion,
  5. required String? gift,
  6. String? notes,
  7. required DateTime? giftDate,
  8. List<MKey>? gifteeKeys,
  9. required MKey? recipientKey,
})

Implementation

static Gift of(
    {IReliveItContact? creator,
    required DateTime? dateCreated,
    ITaskFactForMModel? assistedTask,
    String? occasion,
    required String? gift,
    String? notes,
    required DateTime? giftDate,
    List<MKey>? gifteeKeys,
    required MKey? recipientKey}) {
  final self = Gift(<String, dynamic>{}, mtype: GiftRef, update: true);
  if (creator != null) self.creator = creator;
  if (dateCreated != null) self.dateCreated = dateCreated;
  if (assistedTask != null) self.assistedTask = assistedTask;
  if (occasion != null) self.occasion = occasion;
  if (gift != null) self.gift = gift;
  if (notes != null) self.notes = notes;
  if (giftDate != null) self.giftDate = giftDate;
  if (gifteeKeys != null) self.gifteeKeys = gifteeKeys;
  if (recipientKey != null) self.recipientKey = recipientKey;
  return self;
}