copyWith method

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

Implementation

NotificationInsertV2Body copyWith(
    {String? dealerId,
    int? deviceId,
    String? type,
    String? message,
    int? timeCreated,
    DateTime? dateTime,
    String? serialNumber,
    String? displayName,
    bool? isUnRead,
    bool? isDeleted,
    DateTime? dateCreated}) {
  return NotificationInsertV2Body(
      dealerId: dealerId ?? this.dealerId,
      deviceId: deviceId ?? this.deviceId,
      type: type ?? this.type,
      message: message ?? this.message,
      timeCreated: timeCreated ?? this.timeCreated,
      dateTime: dateTime ?? this.dateTime,
      serialNumber: serialNumber ?? this.serialNumber,
      displayName: displayName ?? this.displayName,
      isUnRead: isUnRead ?? this.isUnRead,
      isDeleted: isDeleted ?? this.isDeleted,
      dateCreated: dateCreated ?? this.dateCreated);
}