copyWith method

ActiveAlertResponseModel copyWith({
  1. int? deviceeventid,
  2. String? name,
  3. int? deviceId,
  4. int? eventtime,
  5. String? eventdatetime,
  6. int? datecreated,
  7. String? datetimecreated,
})

Implementation

ActiveAlertResponseModel copyWith(
    {int? deviceeventid,
    String? name,
    int? deviceId,
    int? eventtime,
    String? eventdatetime,
    int? datecreated,
    String? datetimecreated}) {
  return ActiveAlertResponseModel(
      deviceeventid: deviceeventid ?? this.deviceeventid,
      name: name ?? this.name,
      deviceId: deviceId ?? this.deviceId,
      eventtime: eventtime ?? this.eventtime,
      eventdatetime: eventdatetime ?? this.eventdatetime,
      datecreated: datecreated ?? this.datecreated,
      datetimecreated: datetimecreated ?? this.datetimecreated);
}