copyWithWrapped method

NotificationInsertV3Body copyWithWrapped({
  1. Wrapped<String?>? dealerId,
  2. Wrapped<int?>? deviceId,
  3. Wrapped<String?>? type,
  4. Wrapped<String?>? message,
  5. Wrapped<int?>? timeCreated,
  6. Wrapped<DateTime?>? dateTime,
  7. Wrapped<String?>? serialNumber,
  8. Wrapped<String?>? displayName,
  9. Wrapped<bool?>? isUnRead,
  10. Wrapped<bool?>? isDeleted,
  11. Wrapped<DateTime?>? dateCreated,
})

Implementation

NotificationInsertV3Body copyWithWrapped(
    {Wrapped<String?>? dealerId,
    Wrapped<int?>? deviceId,
    Wrapped<String?>? type,
    Wrapped<String?>? message,
    Wrapped<int?>? timeCreated,
    Wrapped<DateTime?>? dateTime,
    Wrapped<String?>? serialNumber,
    Wrapped<String?>? displayName,
    Wrapped<bool?>? isUnRead,
    Wrapped<bool?>? isDeleted,
    Wrapped<DateTime?>? dateCreated}) {
  return NotificationInsertV3Body(
      dealerId: (dealerId != null ? dealerId.value : this.dealerId),
      deviceId: (deviceId != null ? deviceId.value : this.deviceId),
      type: (type != null ? type.value : this.type),
      message: (message != null ? message.value : this.message),
      timeCreated:
          (timeCreated != null ? timeCreated.value : this.timeCreated),
      dateTime: (dateTime != null ? dateTime.value : this.dateTime),
      serialNumber:
          (serialNumber != null ? serialNumber.value : this.serialNumber),
      displayName:
          (displayName != null ? displayName.value : this.displayName),
      isUnRead: (isUnRead != null ? isUnRead.value : this.isUnRead),
      isDeleted: (isDeleted != null ? isDeleted.value : this.isDeleted),
      dateCreated:
          (dateCreated != null ? dateCreated.value : this.dateCreated));
}