copyWith method

NotifyDevicesEntity copyWith({
  1. bool? success,
  2. String? message,
  3. String? notifyType,
  4. List<DeviceEntity>? data,
})

Implementation

NotifyDevicesEntity copyWith({
  bool? success,
  String? message,
  String? notifyType,
  List<DeviceEntity>? data,
}) {
  return NotifyDevicesEntity()
    ..success = success ?? this.success
    ..message = message ?? this.message
    ..notifyType = notifyType ?? this.notifyType
    ..data = data ?? this.data;
}