fix: regenerate freezed files with system and imei fields
This commit is contained in:
@@ -15,7 +15,7 @@ T _$identity<T>(T value) => value;
|
||||
/// @nodoc
|
||||
mixin _$DeviceCapabilitiesModel {
|
||||
|
||||
DeviceCapabilityOptionModel? get heartbeats; DeviceCapabilityEnabledModel? get bloodPressure; DeviceCapabilityAlertsModel? get alerts; DeviceCapabilityEnabledModel? get podometer; DeviceCapabilityContactsModel? get contacts; DeviceCapabilitySettingsModel? get settings; DeviceCapabilityCommandsModel? get commands; DeviceCapabilityTakepillsModel? get takepills; DeviceCapabilityOptionModel? get location; DeviceCapabilityCameraModel? get camera; DeviceCapabilityDoNotDisturbModel? get doNotDisturbs; DeviceCapabilityAlarmsModel? get alarms; DeviceCapabilityAppUsageModel? get appUsageSchedules; DeviceCapabilityEnabledModel? get keyboard; DeviceCapabilityEnabledModel? get nightMode; DeviceCapabilityEnabledModel? get wifi; DeviceCapabilityEnabledModel? get deviceBackground; DeviceCapabilityVolumeModel? get volume;
|
||||
DeviceCapabilityOptionModel? get heartbeats; DeviceCapabilityEnabledModel? get bloodPressure; DeviceCapabilityAlertsModel? get alerts; DeviceCapabilityEnabledModel? get podometer; DeviceCapabilityContactsModel? get contacts; DeviceCapabilitySettingsModel? get settings; DeviceCapabilityCommandsModel? get commands; DeviceCapabilityTakepillsModel? get takepills; DeviceCapabilityOptionModel? get location; DeviceCapabilityCameraModel? get camera; DeviceCapabilityDoNotDisturbModel? get doNotDisturbs; DeviceCapabilityAlarmsModel? get alarms; DeviceCapabilityAppUsageModel? get appUsageSchedules; DeviceCapabilityEnabledModel? get keyboard; DeviceCapabilityEnabledModel? get nightMode; DeviceCapabilityEnabledModel? get wifi; DeviceCapabilityEnabledModel? get deviceBackground; DeviceCapabilityVolumeModel? get volume; String? get system;
|
||||
/// Create a copy of DeviceCapabilitiesModel
|
||||
/// with the given fields replaced by the non-null parameter values.
|
||||
@JsonKey(includeFromJson: false, includeToJson: false)
|
||||
@@ -28,16 +28,16 @@ $DeviceCapabilitiesModelCopyWith<DeviceCapabilitiesModel> get copyWith => _$Devi
|
||||
|
||||
@override
|
||||
bool operator ==(Object other) {
|
||||
return identical(this, other) || (other.runtimeType == runtimeType&&other is DeviceCapabilitiesModel&&(identical(other.heartbeats, heartbeats) || other.heartbeats == heartbeats)&&(identical(other.bloodPressure, bloodPressure) || other.bloodPressure == bloodPressure)&&(identical(other.alerts, alerts) || other.alerts == alerts)&&(identical(other.podometer, podometer) || other.podometer == podometer)&&(identical(other.contacts, contacts) || other.contacts == contacts)&&(identical(other.settings, settings) || other.settings == settings)&&(identical(other.commands, commands) || other.commands == commands)&&(identical(other.takepills, takepills) || other.takepills == takepills)&&(identical(other.location, location) || other.location == location)&&(identical(other.camera, camera) || other.camera == camera)&&(identical(other.doNotDisturbs, doNotDisturbs) || other.doNotDisturbs == doNotDisturbs)&&(identical(other.alarms, alarms) || other.alarms == alarms)&&(identical(other.appUsageSchedules, appUsageSchedules) || other.appUsageSchedules == appUsageSchedules)&&(identical(other.keyboard, keyboard) || other.keyboard == keyboard)&&(identical(other.nightMode, nightMode) || other.nightMode == nightMode)&&(identical(other.wifi, wifi) || other.wifi == wifi)&&(identical(other.deviceBackground, deviceBackground) || other.deviceBackground == deviceBackground)&&(identical(other.volume, volume) || other.volume == volume));
|
||||
return identical(this, other) || (other.runtimeType == runtimeType&&other is DeviceCapabilitiesModel&&(identical(other.heartbeats, heartbeats) || other.heartbeats == heartbeats)&&(identical(other.bloodPressure, bloodPressure) || other.bloodPressure == bloodPressure)&&(identical(other.alerts, alerts) || other.alerts == alerts)&&(identical(other.podometer, podometer) || other.podometer == podometer)&&(identical(other.contacts, contacts) || other.contacts == contacts)&&(identical(other.settings, settings) || other.settings == settings)&&(identical(other.commands, commands) || other.commands == commands)&&(identical(other.takepills, takepills) || other.takepills == takepills)&&(identical(other.location, location) || other.location == location)&&(identical(other.camera, camera) || other.camera == camera)&&(identical(other.doNotDisturbs, doNotDisturbs) || other.doNotDisturbs == doNotDisturbs)&&(identical(other.alarms, alarms) || other.alarms == alarms)&&(identical(other.appUsageSchedules, appUsageSchedules) || other.appUsageSchedules == appUsageSchedules)&&(identical(other.keyboard, keyboard) || other.keyboard == keyboard)&&(identical(other.nightMode, nightMode) || other.nightMode == nightMode)&&(identical(other.wifi, wifi) || other.wifi == wifi)&&(identical(other.deviceBackground, deviceBackground) || other.deviceBackground == deviceBackground)&&(identical(other.volume, volume) || other.volume == volume)&&(identical(other.system, system) || other.system == system));
|
||||
}
|
||||
|
||||
@JsonKey(includeFromJson: false, includeToJson: false)
|
||||
@override
|
||||
int get hashCode => Object.hash(runtimeType,heartbeats,bloodPressure,alerts,podometer,contacts,settings,commands,takepills,location,camera,doNotDisturbs,alarms,appUsageSchedules,keyboard,nightMode,wifi,deviceBackground,volume);
|
||||
int get hashCode => Object.hashAll([runtimeType,heartbeats,bloodPressure,alerts,podometer,contacts,settings,commands,takepills,location,camera,doNotDisturbs,alarms,appUsageSchedules,keyboard,nightMode,wifi,deviceBackground,volume,system]);
|
||||
|
||||
@override
|
||||
String toString() {
|
||||
return 'DeviceCapabilitiesModel(heartbeats: $heartbeats, bloodPressure: $bloodPressure, alerts: $alerts, podometer: $podometer, contacts: $contacts, settings: $settings, commands: $commands, takepills: $takepills, location: $location, camera: $camera, doNotDisturbs: $doNotDisturbs, alarms: $alarms, appUsageSchedules: $appUsageSchedules, keyboard: $keyboard, nightMode: $nightMode, wifi: $wifi, deviceBackground: $deviceBackground, volume: $volume)';
|
||||
return 'DeviceCapabilitiesModel(heartbeats: $heartbeats, bloodPressure: $bloodPressure, alerts: $alerts, podometer: $podometer, contacts: $contacts, settings: $settings, commands: $commands, takepills: $takepills, location: $location, camera: $camera, doNotDisturbs: $doNotDisturbs, alarms: $alarms, appUsageSchedules: $appUsageSchedules, keyboard: $keyboard, nightMode: $nightMode, wifi: $wifi, deviceBackground: $deviceBackground, volume: $volume, system: $system)';
|
||||
}
|
||||
|
||||
|
||||
@@ -48,7 +48,7 @@ abstract mixin class $DeviceCapabilitiesModelCopyWith<$Res> {
|
||||
factory $DeviceCapabilitiesModelCopyWith(DeviceCapabilitiesModel value, $Res Function(DeviceCapabilitiesModel) _then) = _$DeviceCapabilitiesModelCopyWithImpl;
|
||||
@useResult
|
||||
$Res call({
|
||||
DeviceCapabilityOptionModel? heartbeats, DeviceCapabilityEnabledModel? bloodPressure, DeviceCapabilityAlertsModel? alerts, DeviceCapabilityEnabledModel? podometer, DeviceCapabilityContactsModel? contacts, DeviceCapabilitySettingsModel? settings, DeviceCapabilityCommandsModel? commands, DeviceCapabilityTakepillsModel? takepills, DeviceCapabilityOptionModel? location, DeviceCapabilityCameraModel? camera, DeviceCapabilityDoNotDisturbModel? doNotDisturbs, DeviceCapabilityAlarmsModel? alarms, DeviceCapabilityAppUsageModel? appUsageSchedules, DeviceCapabilityEnabledModel? keyboard, DeviceCapabilityEnabledModel? nightMode, DeviceCapabilityEnabledModel? wifi, DeviceCapabilityEnabledModel? deviceBackground, DeviceCapabilityVolumeModel? volume
|
||||
DeviceCapabilityOptionModel? heartbeats, DeviceCapabilityEnabledModel? bloodPressure, DeviceCapabilityAlertsModel? alerts, DeviceCapabilityEnabledModel? podometer, DeviceCapabilityContactsModel? contacts, DeviceCapabilitySettingsModel? settings, DeviceCapabilityCommandsModel? commands, DeviceCapabilityTakepillsModel? takepills, DeviceCapabilityOptionModel? location, DeviceCapabilityCameraModel? camera, DeviceCapabilityDoNotDisturbModel? doNotDisturbs, DeviceCapabilityAlarmsModel? alarms, DeviceCapabilityAppUsageModel? appUsageSchedules, DeviceCapabilityEnabledModel? keyboard, DeviceCapabilityEnabledModel? nightMode, DeviceCapabilityEnabledModel? wifi, DeviceCapabilityEnabledModel? deviceBackground, DeviceCapabilityVolumeModel? volume, String? system
|
||||
});
|
||||
|
||||
|
||||
@@ -65,7 +65,7 @@ class _$DeviceCapabilitiesModelCopyWithImpl<$Res>
|
||||
|
||||
/// Create a copy of DeviceCapabilitiesModel
|
||||
/// with the given fields replaced by the non-null parameter values.
|
||||
@pragma('vm:prefer-inline') @override $Res call({Object? heartbeats = freezed,Object? bloodPressure = freezed,Object? alerts = freezed,Object? podometer = freezed,Object? contacts = freezed,Object? settings = freezed,Object? commands = freezed,Object? takepills = freezed,Object? location = freezed,Object? camera = freezed,Object? doNotDisturbs = freezed,Object? alarms = freezed,Object? appUsageSchedules = freezed,Object? keyboard = freezed,Object? nightMode = freezed,Object? wifi = freezed,Object? deviceBackground = freezed,Object? volume = freezed,}) {
|
||||
@pragma('vm:prefer-inline') @override $Res call({Object? heartbeats = freezed,Object? bloodPressure = freezed,Object? alerts = freezed,Object? podometer = freezed,Object? contacts = freezed,Object? settings = freezed,Object? commands = freezed,Object? takepills = freezed,Object? location = freezed,Object? camera = freezed,Object? doNotDisturbs = freezed,Object? alarms = freezed,Object? appUsageSchedules = freezed,Object? keyboard = freezed,Object? nightMode = freezed,Object? wifi = freezed,Object? deviceBackground = freezed,Object? volume = freezed,Object? system = freezed,}) {
|
||||
return _then(_self.copyWith(
|
||||
heartbeats: freezed == heartbeats ? _self.heartbeats : heartbeats // ignore: cast_nullable_to_non_nullable
|
||||
as DeviceCapabilityOptionModel?,bloodPressure: freezed == bloodPressure ? _self.bloodPressure : bloodPressure // ignore: cast_nullable_to_non_nullable
|
||||
@@ -85,7 +85,8 @@ as DeviceCapabilityEnabledModel?,nightMode: freezed == nightMode ? _self.nightMo
|
||||
as DeviceCapabilityEnabledModel?,wifi: freezed == wifi ? _self.wifi : wifi // ignore: cast_nullable_to_non_nullable
|
||||
as DeviceCapabilityEnabledModel?,deviceBackground: freezed == deviceBackground ? _self.deviceBackground : deviceBackground // ignore: cast_nullable_to_non_nullable
|
||||
as DeviceCapabilityEnabledModel?,volume: freezed == volume ? _self.volume : volume // ignore: cast_nullable_to_non_nullable
|
||||
as DeviceCapabilityVolumeModel?,
|
||||
as DeviceCapabilityVolumeModel?,system: freezed == system ? _self.system : system // ignore: cast_nullable_to_non_nullable
|
||||
as String?,
|
||||
));
|
||||
}
|
||||
/// Create a copy of DeviceCapabilitiesModel
|
||||
@@ -386,10 +387,10 @@ return $default(_that);case _:
|
||||
/// }
|
||||
/// ```
|
||||
|
||||
@optionalTypeArgs TResult maybeWhen<TResult extends Object?>(TResult Function( DeviceCapabilityOptionModel? heartbeats, DeviceCapabilityEnabledModel? bloodPressure, DeviceCapabilityAlertsModel? alerts, DeviceCapabilityEnabledModel? podometer, DeviceCapabilityContactsModel? contacts, DeviceCapabilitySettingsModel? settings, DeviceCapabilityCommandsModel? commands, DeviceCapabilityTakepillsModel? takepills, DeviceCapabilityOptionModel? location, DeviceCapabilityCameraModel? camera, DeviceCapabilityDoNotDisturbModel? doNotDisturbs, DeviceCapabilityAlarmsModel? alarms, DeviceCapabilityAppUsageModel? appUsageSchedules, DeviceCapabilityEnabledModel? keyboard, DeviceCapabilityEnabledModel? nightMode, DeviceCapabilityEnabledModel? wifi, DeviceCapabilityEnabledModel? deviceBackground, DeviceCapabilityVolumeModel? volume)? $default,{required TResult orElse(),}) {final _that = this;
|
||||
@optionalTypeArgs TResult maybeWhen<TResult extends Object?>(TResult Function( DeviceCapabilityOptionModel? heartbeats, DeviceCapabilityEnabledModel? bloodPressure, DeviceCapabilityAlertsModel? alerts, DeviceCapabilityEnabledModel? podometer, DeviceCapabilityContactsModel? contacts, DeviceCapabilitySettingsModel? settings, DeviceCapabilityCommandsModel? commands, DeviceCapabilityTakepillsModel? takepills, DeviceCapabilityOptionModel? location, DeviceCapabilityCameraModel? camera, DeviceCapabilityDoNotDisturbModel? doNotDisturbs, DeviceCapabilityAlarmsModel? alarms, DeviceCapabilityAppUsageModel? appUsageSchedules, DeviceCapabilityEnabledModel? keyboard, DeviceCapabilityEnabledModel? nightMode, DeviceCapabilityEnabledModel? wifi, DeviceCapabilityEnabledModel? deviceBackground, DeviceCapabilityVolumeModel? volume, String? system)? $default,{required TResult orElse(),}) {final _that = this;
|
||||
switch (_that) {
|
||||
case _DeviceCapabilitiesModel() when $default != null:
|
||||
return $default(_that.heartbeats,_that.bloodPressure,_that.alerts,_that.podometer,_that.contacts,_that.settings,_that.commands,_that.takepills,_that.location,_that.camera,_that.doNotDisturbs,_that.alarms,_that.appUsageSchedules,_that.keyboard,_that.nightMode,_that.wifi,_that.deviceBackground,_that.volume);case _:
|
||||
return $default(_that.heartbeats,_that.bloodPressure,_that.alerts,_that.podometer,_that.contacts,_that.settings,_that.commands,_that.takepills,_that.location,_that.camera,_that.doNotDisturbs,_that.alarms,_that.appUsageSchedules,_that.keyboard,_that.nightMode,_that.wifi,_that.deviceBackground,_that.volume,_that.system);case _:
|
||||
return orElse();
|
||||
|
||||
}
|
||||
@@ -407,10 +408,10 @@ return $default(_that.heartbeats,_that.bloodPressure,_that.alerts,_that.podomete
|
||||
/// }
|
||||
/// ```
|
||||
|
||||
@optionalTypeArgs TResult when<TResult extends Object?>(TResult Function( DeviceCapabilityOptionModel? heartbeats, DeviceCapabilityEnabledModel? bloodPressure, DeviceCapabilityAlertsModel? alerts, DeviceCapabilityEnabledModel? podometer, DeviceCapabilityContactsModel? contacts, DeviceCapabilitySettingsModel? settings, DeviceCapabilityCommandsModel? commands, DeviceCapabilityTakepillsModel? takepills, DeviceCapabilityOptionModel? location, DeviceCapabilityCameraModel? camera, DeviceCapabilityDoNotDisturbModel? doNotDisturbs, DeviceCapabilityAlarmsModel? alarms, DeviceCapabilityAppUsageModel? appUsageSchedules, DeviceCapabilityEnabledModel? keyboard, DeviceCapabilityEnabledModel? nightMode, DeviceCapabilityEnabledModel? wifi, DeviceCapabilityEnabledModel? deviceBackground, DeviceCapabilityVolumeModel? volume) $default,) {final _that = this;
|
||||
@optionalTypeArgs TResult when<TResult extends Object?>(TResult Function( DeviceCapabilityOptionModel? heartbeats, DeviceCapabilityEnabledModel? bloodPressure, DeviceCapabilityAlertsModel? alerts, DeviceCapabilityEnabledModel? podometer, DeviceCapabilityContactsModel? contacts, DeviceCapabilitySettingsModel? settings, DeviceCapabilityCommandsModel? commands, DeviceCapabilityTakepillsModel? takepills, DeviceCapabilityOptionModel? location, DeviceCapabilityCameraModel? camera, DeviceCapabilityDoNotDisturbModel? doNotDisturbs, DeviceCapabilityAlarmsModel? alarms, DeviceCapabilityAppUsageModel? appUsageSchedules, DeviceCapabilityEnabledModel? keyboard, DeviceCapabilityEnabledModel? nightMode, DeviceCapabilityEnabledModel? wifi, DeviceCapabilityEnabledModel? deviceBackground, DeviceCapabilityVolumeModel? volume, String? system) $default,) {final _that = this;
|
||||
switch (_that) {
|
||||
case _DeviceCapabilitiesModel():
|
||||
return $default(_that.heartbeats,_that.bloodPressure,_that.alerts,_that.podometer,_that.contacts,_that.settings,_that.commands,_that.takepills,_that.location,_that.camera,_that.doNotDisturbs,_that.alarms,_that.appUsageSchedules,_that.keyboard,_that.nightMode,_that.wifi,_that.deviceBackground,_that.volume);case _:
|
||||
return $default(_that.heartbeats,_that.bloodPressure,_that.alerts,_that.podometer,_that.contacts,_that.settings,_that.commands,_that.takepills,_that.location,_that.camera,_that.doNotDisturbs,_that.alarms,_that.appUsageSchedules,_that.keyboard,_that.nightMode,_that.wifi,_that.deviceBackground,_that.volume,_that.system);case _:
|
||||
throw StateError('Unexpected subclass');
|
||||
|
||||
}
|
||||
@@ -427,10 +428,10 @@ return $default(_that.heartbeats,_that.bloodPressure,_that.alerts,_that.podomete
|
||||
/// }
|
||||
/// ```
|
||||
|
||||
@optionalTypeArgs TResult? whenOrNull<TResult extends Object?>(TResult? Function( DeviceCapabilityOptionModel? heartbeats, DeviceCapabilityEnabledModel? bloodPressure, DeviceCapabilityAlertsModel? alerts, DeviceCapabilityEnabledModel? podometer, DeviceCapabilityContactsModel? contacts, DeviceCapabilitySettingsModel? settings, DeviceCapabilityCommandsModel? commands, DeviceCapabilityTakepillsModel? takepills, DeviceCapabilityOptionModel? location, DeviceCapabilityCameraModel? camera, DeviceCapabilityDoNotDisturbModel? doNotDisturbs, DeviceCapabilityAlarmsModel? alarms, DeviceCapabilityAppUsageModel? appUsageSchedules, DeviceCapabilityEnabledModel? keyboard, DeviceCapabilityEnabledModel? nightMode, DeviceCapabilityEnabledModel? wifi, DeviceCapabilityEnabledModel? deviceBackground, DeviceCapabilityVolumeModel? volume)? $default,) {final _that = this;
|
||||
@optionalTypeArgs TResult? whenOrNull<TResult extends Object?>(TResult? Function( DeviceCapabilityOptionModel? heartbeats, DeviceCapabilityEnabledModel? bloodPressure, DeviceCapabilityAlertsModel? alerts, DeviceCapabilityEnabledModel? podometer, DeviceCapabilityContactsModel? contacts, DeviceCapabilitySettingsModel? settings, DeviceCapabilityCommandsModel? commands, DeviceCapabilityTakepillsModel? takepills, DeviceCapabilityOptionModel? location, DeviceCapabilityCameraModel? camera, DeviceCapabilityDoNotDisturbModel? doNotDisturbs, DeviceCapabilityAlarmsModel? alarms, DeviceCapabilityAppUsageModel? appUsageSchedules, DeviceCapabilityEnabledModel? keyboard, DeviceCapabilityEnabledModel? nightMode, DeviceCapabilityEnabledModel? wifi, DeviceCapabilityEnabledModel? deviceBackground, DeviceCapabilityVolumeModel? volume, String? system)? $default,) {final _that = this;
|
||||
switch (_that) {
|
||||
case _DeviceCapabilitiesModel() when $default != null:
|
||||
return $default(_that.heartbeats,_that.bloodPressure,_that.alerts,_that.podometer,_that.contacts,_that.settings,_that.commands,_that.takepills,_that.location,_that.camera,_that.doNotDisturbs,_that.alarms,_that.appUsageSchedules,_that.keyboard,_that.nightMode,_that.wifi,_that.deviceBackground,_that.volume);case _:
|
||||
return $default(_that.heartbeats,_that.bloodPressure,_that.alerts,_that.podometer,_that.contacts,_that.settings,_that.commands,_that.takepills,_that.location,_that.camera,_that.doNotDisturbs,_that.alarms,_that.appUsageSchedules,_that.keyboard,_that.nightMode,_that.wifi,_that.deviceBackground,_that.volume,_that.system);case _:
|
||||
return null;
|
||||
|
||||
}
|
||||
@@ -442,7 +443,7 @@ return $default(_that.heartbeats,_that.bloodPressure,_that.alerts,_that.podomete
|
||||
@JsonSerializable()
|
||||
|
||||
class _DeviceCapabilitiesModel implements DeviceCapabilitiesModel {
|
||||
const _DeviceCapabilitiesModel({this.heartbeats, this.bloodPressure, this.alerts, this.podometer, this.contacts, this.settings, this.commands, this.takepills, this.location, this.camera, this.doNotDisturbs, this.alarms, this.appUsageSchedules, this.keyboard, this.nightMode, this.wifi, this.deviceBackground, this.volume});
|
||||
const _DeviceCapabilitiesModel({this.heartbeats, this.bloodPressure, this.alerts, this.podometer, this.contacts, this.settings, this.commands, this.takepills, this.location, this.camera, this.doNotDisturbs, this.alarms, this.appUsageSchedules, this.keyboard, this.nightMode, this.wifi, this.deviceBackground, this.volume, this.system});
|
||||
factory _DeviceCapabilitiesModel.fromJson(Map<String, dynamic> json) => _$DeviceCapabilitiesModelFromJson(json);
|
||||
|
||||
@override final DeviceCapabilityOptionModel? heartbeats;
|
||||
@@ -463,6 +464,7 @@ class _DeviceCapabilitiesModel implements DeviceCapabilitiesModel {
|
||||
@override final DeviceCapabilityEnabledModel? wifi;
|
||||
@override final DeviceCapabilityEnabledModel? deviceBackground;
|
||||
@override final DeviceCapabilityVolumeModel? volume;
|
||||
@override final String? system;
|
||||
|
||||
/// Create a copy of DeviceCapabilitiesModel
|
||||
/// with the given fields replaced by the non-null parameter values.
|
||||
@@ -477,16 +479,16 @@ Map<String, dynamic> toJson() {
|
||||
|
||||
@override
|
||||
bool operator ==(Object other) {
|
||||
return identical(this, other) || (other.runtimeType == runtimeType&&other is _DeviceCapabilitiesModel&&(identical(other.heartbeats, heartbeats) || other.heartbeats == heartbeats)&&(identical(other.bloodPressure, bloodPressure) || other.bloodPressure == bloodPressure)&&(identical(other.alerts, alerts) || other.alerts == alerts)&&(identical(other.podometer, podometer) || other.podometer == podometer)&&(identical(other.contacts, contacts) || other.contacts == contacts)&&(identical(other.settings, settings) || other.settings == settings)&&(identical(other.commands, commands) || other.commands == commands)&&(identical(other.takepills, takepills) || other.takepills == takepills)&&(identical(other.location, location) || other.location == location)&&(identical(other.camera, camera) || other.camera == camera)&&(identical(other.doNotDisturbs, doNotDisturbs) || other.doNotDisturbs == doNotDisturbs)&&(identical(other.alarms, alarms) || other.alarms == alarms)&&(identical(other.appUsageSchedules, appUsageSchedules) || other.appUsageSchedules == appUsageSchedules)&&(identical(other.keyboard, keyboard) || other.keyboard == keyboard)&&(identical(other.nightMode, nightMode) || other.nightMode == nightMode)&&(identical(other.wifi, wifi) || other.wifi == wifi)&&(identical(other.deviceBackground, deviceBackground) || other.deviceBackground == deviceBackground)&&(identical(other.volume, volume) || other.volume == volume));
|
||||
return identical(this, other) || (other.runtimeType == runtimeType&&other is _DeviceCapabilitiesModel&&(identical(other.heartbeats, heartbeats) || other.heartbeats == heartbeats)&&(identical(other.bloodPressure, bloodPressure) || other.bloodPressure == bloodPressure)&&(identical(other.alerts, alerts) || other.alerts == alerts)&&(identical(other.podometer, podometer) || other.podometer == podometer)&&(identical(other.contacts, contacts) || other.contacts == contacts)&&(identical(other.settings, settings) || other.settings == settings)&&(identical(other.commands, commands) || other.commands == commands)&&(identical(other.takepills, takepills) || other.takepills == takepills)&&(identical(other.location, location) || other.location == location)&&(identical(other.camera, camera) || other.camera == camera)&&(identical(other.doNotDisturbs, doNotDisturbs) || other.doNotDisturbs == doNotDisturbs)&&(identical(other.alarms, alarms) || other.alarms == alarms)&&(identical(other.appUsageSchedules, appUsageSchedules) || other.appUsageSchedules == appUsageSchedules)&&(identical(other.keyboard, keyboard) || other.keyboard == keyboard)&&(identical(other.nightMode, nightMode) || other.nightMode == nightMode)&&(identical(other.wifi, wifi) || other.wifi == wifi)&&(identical(other.deviceBackground, deviceBackground) || other.deviceBackground == deviceBackground)&&(identical(other.volume, volume) || other.volume == volume)&&(identical(other.system, system) || other.system == system));
|
||||
}
|
||||
|
||||
@JsonKey(includeFromJson: false, includeToJson: false)
|
||||
@override
|
||||
int get hashCode => Object.hash(runtimeType,heartbeats,bloodPressure,alerts,podometer,contacts,settings,commands,takepills,location,camera,doNotDisturbs,alarms,appUsageSchedules,keyboard,nightMode,wifi,deviceBackground,volume);
|
||||
int get hashCode => Object.hashAll([runtimeType,heartbeats,bloodPressure,alerts,podometer,contacts,settings,commands,takepills,location,camera,doNotDisturbs,alarms,appUsageSchedules,keyboard,nightMode,wifi,deviceBackground,volume,system]);
|
||||
|
||||
@override
|
||||
String toString() {
|
||||
return 'DeviceCapabilitiesModel(heartbeats: $heartbeats, bloodPressure: $bloodPressure, alerts: $alerts, podometer: $podometer, contacts: $contacts, settings: $settings, commands: $commands, takepills: $takepills, location: $location, camera: $camera, doNotDisturbs: $doNotDisturbs, alarms: $alarms, appUsageSchedules: $appUsageSchedules, keyboard: $keyboard, nightMode: $nightMode, wifi: $wifi, deviceBackground: $deviceBackground, volume: $volume)';
|
||||
return 'DeviceCapabilitiesModel(heartbeats: $heartbeats, bloodPressure: $bloodPressure, alerts: $alerts, podometer: $podometer, contacts: $contacts, settings: $settings, commands: $commands, takepills: $takepills, location: $location, camera: $camera, doNotDisturbs: $doNotDisturbs, alarms: $alarms, appUsageSchedules: $appUsageSchedules, keyboard: $keyboard, nightMode: $nightMode, wifi: $wifi, deviceBackground: $deviceBackground, volume: $volume, system: $system)';
|
||||
}
|
||||
|
||||
|
||||
@@ -497,7 +499,7 @@ abstract mixin class _$DeviceCapabilitiesModelCopyWith<$Res> implements $DeviceC
|
||||
factory _$DeviceCapabilitiesModelCopyWith(_DeviceCapabilitiesModel value, $Res Function(_DeviceCapabilitiesModel) _then) = __$DeviceCapabilitiesModelCopyWithImpl;
|
||||
@override @useResult
|
||||
$Res call({
|
||||
DeviceCapabilityOptionModel? heartbeats, DeviceCapabilityEnabledModel? bloodPressure, DeviceCapabilityAlertsModel? alerts, DeviceCapabilityEnabledModel? podometer, DeviceCapabilityContactsModel? contacts, DeviceCapabilitySettingsModel? settings, DeviceCapabilityCommandsModel? commands, DeviceCapabilityTakepillsModel? takepills, DeviceCapabilityOptionModel? location, DeviceCapabilityCameraModel? camera, DeviceCapabilityDoNotDisturbModel? doNotDisturbs, DeviceCapabilityAlarmsModel? alarms, DeviceCapabilityAppUsageModel? appUsageSchedules, DeviceCapabilityEnabledModel? keyboard, DeviceCapabilityEnabledModel? nightMode, DeviceCapabilityEnabledModel? wifi, DeviceCapabilityEnabledModel? deviceBackground, DeviceCapabilityVolumeModel? volume
|
||||
DeviceCapabilityOptionModel? heartbeats, DeviceCapabilityEnabledModel? bloodPressure, DeviceCapabilityAlertsModel? alerts, DeviceCapabilityEnabledModel? podometer, DeviceCapabilityContactsModel? contacts, DeviceCapabilitySettingsModel? settings, DeviceCapabilityCommandsModel? commands, DeviceCapabilityTakepillsModel? takepills, DeviceCapabilityOptionModel? location, DeviceCapabilityCameraModel? camera, DeviceCapabilityDoNotDisturbModel? doNotDisturbs, DeviceCapabilityAlarmsModel? alarms, DeviceCapabilityAppUsageModel? appUsageSchedules, DeviceCapabilityEnabledModel? keyboard, DeviceCapabilityEnabledModel? nightMode, DeviceCapabilityEnabledModel? wifi, DeviceCapabilityEnabledModel? deviceBackground, DeviceCapabilityVolumeModel? volume, String? system
|
||||
});
|
||||
|
||||
|
||||
@@ -514,7 +516,7 @@ class __$DeviceCapabilitiesModelCopyWithImpl<$Res>
|
||||
|
||||
/// Create a copy of DeviceCapabilitiesModel
|
||||
/// with the given fields replaced by the non-null parameter values.
|
||||
@override @pragma('vm:prefer-inline') $Res call({Object? heartbeats = freezed,Object? bloodPressure = freezed,Object? alerts = freezed,Object? podometer = freezed,Object? contacts = freezed,Object? settings = freezed,Object? commands = freezed,Object? takepills = freezed,Object? location = freezed,Object? camera = freezed,Object? doNotDisturbs = freezed,Object? alarms = freezed,Object? appUsageSchedules = freezed,Object? keyboard = freezed,Object? nightMode = freezed,Object? wifi = freezed,Object? deviceBackground = freezed,Object? volume = freezed,}) {
|
||||
@override @pragma('vm:prefer-inline') $Res call({Object? heartbeats = freezed,Object? bloodPressure = freezed,Object? alerts = freezed,Object? podometer = freezed,Object? contacts = freezed,Object? settings = freezed,Object? commands = freezed,Object? takepills = freezed,Object? location = freezed,Object? camera = freezed,Object? doNotDisturbs = freezed,Object? alarms = freezed,Object? appUsageSchedules = freezed,Object? keyboard = freezed,Object? nightMode = freezed,Object? wifi = freezed,Object? deviceBackground = freezed,Object? volume = freezed,Object? system = freezed,}) {
|
||||
return _then(_DeviceCapabilitiesModel(
|
||||
heartbeats: freezed == heartbeats ? _self.heartbeats : heartbeats // ignore: cast_nullable_to_non_nullable
|
||||
as DeviceCapabilityOptionModel?,bloodPressure: freezed == bloodPressure ? _self.bloodPressure : bloodPressure // ignore: cast_nullable_to_non_nullable
|
||||
@@ -534,7 +536,8 @@ as DeviceCapabilityEnabledModel?,nightMode: freezed == nightMode ? _self.nightMo
|
||||
as DeviceCapabilityEnabledModel?,wifi: freezed == wifi ? _self.wifi : wifi // ignore: cast_nullable_to_non_nullable
|
||||
as DeviceCapabilityEnabledModel?,deviceBackground: freezed == deviceBackground ? _self.deviceBackground : deviceBackground // ignore: cast_nullable_to_non_nullable
|
||||
as DeviceCapabilityEnabledModel?,volume: freezed == volume ? _self.volume : volume // ignore: cast_nullable_to_non_nullable
|
||||
as DeviceCapabilityVolumeModel?,
|
||||
as DeviceCapabilityVolumeModel?,system: freezed == system ? _self.system : system // ignore: cast_nullable_to_non_nullable
|
||||
as String?,
|
||||
));
|
||||
}
|
||||
|
||||
|
||||
@@ -99,6 +99,7 @@ _DeviceCapabilitiesModel _$DeviceCapabilitiesModelFromJson(
|
||||
: DeviceCapabilityVolumeModel.fromJson(
|
||||
json['volume'] as Map<String, dynamic>,
|
||||
),
|
||||
system: json['system'] as String?,
|
||||
);
|
||||
|
||||
Map<String, dynamic> _$DeviceCapabilitiesModelToJson(
|
||||
@@ -122,6 +123,7 @@ Map<String, dynamic> _$DeviceCapabilitiesModelToJson(
|
||||
'wifi': instance.wifi,
|
||||
'deviceBackground': instance.deviceBackground,
|
||||
'volume': instance.volume,
|
||||
'system': instance.system,
|
||||
};
|
||||
|
||||
_DeviceCapabilityEnabledModel _$DeviceCapabilityEnabledModelFromJson(
|
||||
|
||||
@@ -14,7 +14,7 @@ T _$identity<T>(T value) => value;
|
||||
/// @nodoc
|
||||
mixin _$DeviceCapabilitiesEntity {
|
||||
|
||||
DeviceCapabilityOptionEntity? get heartbeats; DeviceCapabilityEnabledEntity? get bloodPressure; DeviceCapabilityAlertsEntity? get alerts; DeviceCapabilityEnabledEntity? get podometer; DeviceCapabilityContactsEntity? get contacts; DeviceCapabilitySettingsEntity? get settings; DeviceCapabilityCommandsEntity? get commands; DeviceCapabilityTakepillsEntity? get takepills; DeviceCapabilityOptionEntity? get location; DeviceCapabilityCameraEntity? get camera; DeviceCapabilityDoNotDisturbEntity? get doNotDisturbs; DeviceCapabilityAlarmsEntity? get alarms; DeviceCapabilityAppUsageEntity? get appUsageSchedules; DeviceCapabilityEnabledEntity? get keyboard; DeviceCapabilityEnabledEntity? get nightMode; DeviceCapabilityEnabledEntity? get wifi; DeviceCapabilityEnabledEntity? get deviceBackground; DeviceCapabilityVolumeEntity? get volume;
|
||||
DeviceCapabilityOptionEntity? get heartbeats; DeviceCapabilityEnabledEntity? get bloodPressure; DeviceCapabilityAlertsEntity? get alerts; DeviceCapabilityEnabledEntity? get podometer; DeviceCapabilityContactsEntity? get contacts; DeviceCapabilitySettingsEntity? get settings; DeviceCapabilityCommandsEntity? get commands; DeviceCapabilityTakepillsEntity? get takepills; DeviceCapabilityOptionEntity? get location; DeviceCapabilityCameraEntity? get camera; DeviceCapabilityDoNotDisturbEntity? get doNotDisturbs; DeviceCapabilityAlarmsEntity? get alarms; DeviceCapabilityAppUsageEntity? get appUsageSchedules; DeviceCapabilityEnabledEntity? get keyboard; DeviceCapabilityEnabledEntity? get nightMode; DeviceCapabilityEnabledEntity? get wifi; DeviceCapabilityEnabledEntity? get deviceBackground; DeviceCapabilityVolumeEntity? get volume; String? get system;
|
||||
/// Create a copy of DeviceCapabilitiesEntity
|
||||
/// with the given fields replaced by the non-null parameter values.
|
||||
@JsonKey(includeFromJson: false, includeToJson: false)
|
||||
@@ -25,16 +25,16 @@ $DeviceCapabilitiesEntityCopyWith<DeviceCapabilitiesEntity> get copyWith => _$De
|
||||
|
||||
@override
|
||||
bool operator ==(Object other) {
|
||||
return identical(this, other) || (other.runtimeType == runtimeType&&other is DeviceCapabilitiesEntity&&(identical(other.heartbeats, heartbeats) || other.heartbeats == heartbeats)&&(identical(other.bloodPressure, bloodPressure) || other.bloodPressure == bloodPressure)&&(identical(other.alerts, alerts) || other.alerts == alerts)&&(identical(other.podometer, podometer) || other.podometer == podometer)&&(identical(other.contacts, contacts) || other.contacts == contacts)&&(identical(other.settings, settings) || other.settings == settings)&&(identical(other.commands, commands) || other.commands == commands)&&(identical(other.takepills, takepills) || other.takepills == takepills)&&(identical(other.location, location) || other.location == location)&&(identical(other.camera, camera) || other.camera == camera)&&(identical(other.doNotDisturbs, doNotDisturbs) || other.doNotDisturbs == doNotDisturbs)&&(identical(other.alarms, alarms) || other.alarms == alarms)&&(identical(other.appUsageSchedules, appUsageSchedules) || other.appUsageSchedules == appUsageSchedules)&&(identical(other.keyboard, keyboard) || other.keyboard == keyboard)&&(identical(other.nightMode, nightMode) || other.nightMode == nightMode)&&(identical(other.wifi, wifi) || other.wifi == wifi)&&(identical(other.deviceBackground, deviceBackground) || other.deviceBackground == deviceBackground)&&(identical(other.volume, volume) || other.volume == volume));
|
||||
return identical(this, other) || (other.runtimeType == runtimeType&&other is DeviceCapabilitiesEntity&&(identical(other.heartbeats, heartbeats) || other.heartbeats == heartbeats)&&(identical(other.bloodPressure, bloodPressure) || other.bloodPressure == bloodPressure)&&(identical(other.alerts, alerts) || other.alerts == alerts)&&(identical(other.podometer, podometer) || other.podometer == podometer)&&(identical(other.contacts, contacts) || other.contacts == contacts)&&(identical(other.settings, settings) || other.settings == settings)&&(identical(other.commands, commands) || other.commands == commands)&&(identical(other.takepills, takepills) || other.takepills == takepills)&&(identical(other.location, location) || other.location == location)&&(identical(other.camera, camera) || other.camera == camera)&&(identical(other.doNotDisturbs, doNotDisturbs) || other.doNotDisturbs == doNotDisturbs)&&(identical(other.alarms, alarms) || other.alarms == alarms)&&(identical(other.appUsageSchedules, appUsageSchedules) || other.appUsageSchedules == appUsageSchedules)&&(identical(other.keyboard, keyboard) || other.keyboard == keyboard)&&(identical(other.nightMode, nightMode) || other.nightMode == nightMode)&&(identical(other.wifi, wifi) || other.wifi == wifi)&&(identical(other.deviceBackground, deviceBackground) || other.deviceBackground == deviceBackground)&&(identical(other.volume, volume) || other.volume == volume)&&(identical(other.system, system) || other.system == system));
|
||||
}
|
||||
|
||||
|
||||
@override
|
||||
int get hashCode => Object.hash(runtimeType,heartbeats,bloodPressure,alerts,podometer,contacts,settings,commands,takepills,location,camera,doNotDisturbs,alarms,appUsageSchedules,keyboard,nightMode,wifi,deviceBackground,volume);
|
||||
int get hashCode => Object.hashAll([runtimeType,heartbeats,bloodPressure,alerts,podometer,contacts,settings,commands,takepills,location,camera,doNotDisturbs,alarms,appUsageSchedules,keyboard,nightMode,wifi,deviceBackground,volume,system]);
|
||||
|
||||
@override
|
||||
String toString() {
|
||||
return 'DeviceCapabilitiesEntity(heartbeats: $heartbeats, bloodPressure: $bloodPressure, alerts: $alerts, podometer: $podometer, contacts: $contacts, settings: $settings, commands: $commands, takepills: $takepills, location: $location, camera: $camera, doNotDisturbs: $doNotDisturbs, alarms: $alarms, appUsageSchedules: $appUsageSchedules, keyboard: $keyboard, nightMode: $nightMode, wifi: $wifi, deviceBackground: $deviceBackground, volume: $volume)';
|
||||
return 'DeviceCapabilitiesEntity(heartbeats: $heartbeats, bloodPressure: $bloodPressure, alerts: $alerts, podometer: $podometer, contacts: $contacts, settings: $settings, commands: $commands, takepills: $takepills, location: $location, camera: $camera, doNotDisturbs: $doNotDisturbs, alarms: $alarms, appUsageSchedules: $appUsageSchedules, keyboard: $keyboard, nightMode: $nightMode, wifi: $wifi, deviceBackground: $deviceBackground, volume: $volume, system: $system)';
|
||||
}
|
||||
|
||||
|
||||
@@ -45,7 +45,7 @@ abstract mixin class $DeviceCapabilitiesEntityCopyWith<$Res> {
|
||||
factory $DeviceCapabilitiesEntityCopyWith(DeviceCapabilitiesEntity value, $Res Function(DeviceCapabilitiesEntity) _then) = _$DeviceCapabilitiesEntityCopyWithImpl;
|
||||
@useResult
|
||||
$Res call({
|
||||
DeviceCapabilityOptionEntity? heartbeats, DeviceCapabilityEnabledEntity? bloodPressure, DeviceCapabilityAlertsEntity? alerts, DeviceCapabilityEnabledEntity? podometer, DeviceCapabilityContactsEntity? contacts, DeviceCapabilitySettingsEntity? settings, DeviceCapabilityCommandsEntity? commands, DeviceCapabilityTakepillsEntity? takepills, DeviceCapabilityOptionEntity? location, DeviceCapabilityCameraEntity? camera, DeviceCapabilityDoNotDisturbEntity? doNotDisturbs, DeviceCapabilityAlarmsEntity? alarms, DeviceCapabilityAppUsageEntity? appUsageSchedules, DeviceCapabilityEnabledEntity? keyboard, DeviceCapabilityEnabledEntity? nightMode, DeviceCapabilityEnabledEntity? wifi, DeviceCapabilityEnabledEntity? deviceBackground, DeviceCapabilityVolumeEntity? volume
|
||||
DeviceCapabilityOptionEntity? heartbeats, DeviceCapabilityEnabledEntity? bloodPressure, DeviceCapabilityAlertsEntity? alerts, DeviceCapabilityEnabledEntity? podometer, DeviceCapabilityContactsEntity? contacts, DeviceCapabilitySettingsEntity? settings, DeviceCapabilityCommandsEntity? commands, DeviceCapabilityTakepillsEntity? takepills, DeviceCapabilityOptionEntity? location, DeviceCapabilityCameraEntity? camera, DeviceCapabilityDoNotDisturbEntity? doNotDisturbs, DeviceCapabilityAlarmsEntity? alarms, DeviceCapabilityAppUsageEntity? appUsageSchedules, DeviceCapabilityEnabledEntity? keyboard, DeviceCapabilityEnabledEntity? nightMode, DeviceCapabilityEnabledEntity? wifi, DeviceCapabilityEnabledEntity? deviceBackground, DeviceCapabilityVolumeEntity? volume, String? system
|
||||
});
|
||||
|
||||
|
||||
@@ -62,7 +62,7 @@ class _$DeviceCapabilitiesEntityCopyWithImpl<$Res>
|
||||
|
||||
/// Create a copy of DeviceCapabilitiesEntity
|
||||
/// with the given fields replaced by the non-null parameter values.
|
||||
@pragma('vm:prefer-inline') @override $Res call({Object? heartbeats = freezed,Object? bloodPressure = freezed,Object? alerts = freezed,Object? podometer = freezed,Object? contacts = freezed,Object? settings = freezed,Object? commands = freezed,Object? takepills = freezed,Object? location = freezed,Object? camera = freezed,Object? doNotDisturbs = freezed,Object? alarms = freezed,Object? appUsageSchedules = freezed,Object? keyboard = freezed,Object? nightMode = freezed,Object? wifi = freezed,Object? deviceBackground = freezed,Object? volume = freezed,}) {
|
||||
@pragma('vm:prefer-inline') @override $Res call({Object? heartbeats = freezed,Object? bloodPressure = freezed,Object? alerts = freezed,Object? podometer = freezed,Object? contacts = freezed,Object? settings = freezed,Object? commands = freezed,Object? takepills = freezed,Object? location = freezed,Object? camera = freezed,Object? doNotDisturbs = freezed,Object? alarms = freezed,Object? appUsageSchedules = freezed,Object? keyboard = freezed,Object? nightMode = freezed,Object? wifi = freezed,Object? deviceBackground = freezed,Object? volume = freezed,Object? system = freezed,}) {
|
||||
return _then(_self.copyWith(
|
||||
heartbeats: freezed == heartbeats ? _self.heartbeats : heartbeats // ignore: cast_nullable_to_non_nullable
|
||||
as DeviceCapabilityOptionEntity?,bloodPressure: freezed == bloodPressure ? _self.bloodPressure : bloodPressure // ignore: cast_nullable_to_non_nullable
|
||||
@@ -82,7 +82,8 @@ as DeviceCapabilityEnabledEntity?,nightMode: freezed == nightMode ? _self.nightM
|
||||
as DeviceCapabilityEnabledEntity?,wifi: freezed == wifi ? _self.wifi : wifi // ignore: cast_nullable_to_non_nullable
|
||||
as DeviceCapabilityEnabledEntity?,deviceBackground: freezed == deviceBackground ? _self.deviceBackground : deviceBackground // ignore: cast_nullable_to_non_nullable
|
||||
as DeviceCapabilityEnabledEntity?,volume: freezed == volume ? _self.volume : volume // ignore: cast_nullable_to_non_nullable
|
||||
as DeviceCapabilityVolumeEntity?,
|
||||
as DeviceCapabilityVolumeEntity?,system: freezed == system ? _self.system : system // ignore: cast_nullable_to_non_nullable
|
||||
as String?,
|
||||
));
|
||||
}
|
||||
/// Create a copy of DeviceCapabilitiesEntity
|
||||
@@ -383,10 +384,10 @@ return $default(_that);case _:
|
||||
/// }
|
||||
/// ```
|
||||
|
||||
@optionalTypeArgs TResult maybeWhen<TResult extends Object?>(TResult Function( DeviceCapabilityOptionEntity? heartbeats, DeviceCapabilityEnabledEntity? bloodPressure, DeviceCapabilityAlertsEntity? alerts, DeviceCapabilityEnabledEntity? podometer, DeviceCapabilityContactsEntity? contacts, DeviceCapabilitySettingsEntity? settings, DeviceCapabilityCommandsEntity? commands, DeviceCapabilityTakepillsEntity? takepills, DeviceCapabilityOptionEntity? location, DeviceCapabilityCameraEntity? camera, DeviceCapabilityDoNotDisturbEntity? doNotDisturbs, DeviceCapabilityAlarmsEntity? alarms, DeviceCapabilityAppUsageEntity? appUsageSchedules, DeviceCapabilityEnabledEntity? keyboard, DeviceCapabilityEnabledEntity? nightMode, DeviceCapabilityEnabledEntity? wifi, DeviceCapabilityEnabledEntity? deviceBackground, DeviceCapabilityVolumeEntity? volume)? $default,{required TResult orElse(),}) {final _that = this;
|
||||
@optionalTypeArgs TResult maybeWhen<TResult extends Object?>(TResult Function( DeviceCapabilityOptionEntity? heartbeats, DeviceCapabilityEnabledEntity? bloodPressure, DeviceCapabilityAlertsEntity? alerts, DeviceCapabilityEnabledEntity? podometer, DeviceCapabilityContactsEntity? contacts, DeviceCapabilitySettingsEntity? settings, DeviceCapabilityCommandsEntity? commands, DeviceCapabilityTakepillsEntity? takepills, DeviceCapabilityOptionEntity? location, DeviceCapabilityCameraEntity? camera, DeviceCapabilityDoNotDisturbEntity? doNotDisturbs, DeviceCapabilityAlarmsEntity? alarms, DeviceCapabilityAppUsageEntity? appUsageSchedules, DeviceCapabilityEnabledEntity? keyboard, DeviceCapabilityEnabledEntity? nightMode, DeviceCapabilityEnabledEntity? wifi, DeviceCapabilityEnabledEntity? deviceBackground, DeviceCapabilityVolumeEntity? volume, String? system)? $default,{required TResult orElse(),}) {final _that = this;
|
||||
switch (_that) {
|
||||
case _DeviceCapabilitiesEntity() when $default != null:
|
||||
return $default(_that.heartbeats,_that.bloodPressure,_that.alerts,_that.podometer,_that.contacts,_that.settings,_that.commands,_that.takepills,_that.location,_that.camera,_that.doNotDisturbs,_that.alarms,_that.appUsageSchedules,_that.keyboard,_that.nightMode,_that.wifi,_that.deviceBackground,_that.volume);case _:
|
||||
return $default(_that.heartbeats,_that.bloodPressure,_that.alerts,_that.podometer,_that.contacts,_that.settings,_that.commands,_that.takepills,_that.location,_that.camera,_that.doNotDisturbs,_that.alarms,_that.appUsageSchedules,_that.keyboard,_that.nightMode,_that.wifi,_that.deviceBackground,_that.volume,_that.system);case _:
|
||||
return orElse();
|
||||
|
||||
}
|
||||
@@ -404,10 +405,10 @@ return $default(_that.heartbeats,_that.bloodPressure,_that.alerts,_that.podomete
|
||||
/// }
|
||||
/// ```
|
||||
|
||||
@optionalTypeArgs TResult when<TResult extends Object?>(TResult Function( DeviceCapabilityOptionEntity? heartbeats, DeviceCapabilityEnabledEntity? bloodPressure, DeviceCapabilityAlertsEntity? alerts, DeviceCapabilityEnabledEntity? podometer, DeviceCapabilityContactsEntity? contacts, DeviceCapabilitySettingsEntity? settings, DeviceCapabilityCommandsEntity? commands, DeviceCapabilityTakepillsEntity? takepills, DeviceCapabilityOptionEntity? location, DeviceCapabilityCameraEntity? camera, DeviceCapabilityDoNotDisturbEntity? doNotDisturbs, DeviceCapabilityAlarmsEntity? alarms, DeviceCapabilityAppUsageEntity? appUsageSchedules, DeviceCapabilityEnabledEntity? keyboard, DeviceCapabilityEnabledEntity? nightMode, DeviceCapabilityEnabledEntity? wifi, DeviceCapabilityEnabledEntity? deviceBackground, DeviceCapabilityVolumeEntity? volume) $default,) {final _that = this;
|
||||
@optionalTypeArgs TResult when<TResult extends Object?>(TResult Function( DeviceCapabilityOptionEntity? heartbeats, DeviceCapabilityEnabledEntity? bloodPressure, DeviceCapabilityAlertsEntity? alerts, DeviceCapabilityEnabledEntity? podometer, DeviceCapabilityContactsEntity? contacts, DeviceCapabilitySettingsEntity? settings, DeviceCapabilityCommandsEntity? commands, DeviceCapabilityTakepillsEntity? takepills, DeviceCapabilityOptionEntity? location, DeviceCapabilityCameraEntity? camera, DeviceCapabilityDoNotDisturbEntity? doNotDisturbs, DeviceCapabilityAlarmsEntity? alarms, DeviceCapabilityAppUsageEntity? appUsageSchedules, DeviceCapabilityEnabledEntity? keyboard, DeviceCapabilityEnabledEntity? nightMode, DeviceCapabilityEnabledEntity? wifi, DeviceCapabilityEnabledEntity? deviceBackground, DeviceCapabilityVolumeEntity? volume, String? system) $default,) {final _that = this;
|
||||
switch (_that) {
|
||||
case _DeviceCapabilitiesEntity():
|
||||
return $default(_that.heartbeats,_that.bloodPressure,_that.alerts,_that.podometer,_that.contacts,_that.settings,_that.commands,_that.takepills,_that.location,_that.camera,_that.doNotDisturbs,_that.alarms,_that.appUsageSchedules,_that.keyboard,_that.nightMode,_that.wifi,_that.deviceBackground,_that.volume);case _:
|
||||
return $default(_that.heartbeats,_that.bloodPressure,_that.alerts,_that.podometer,_that.contacts,_that.settings,_that.commands,_that.takepills,_that.location,_that.camera,_that.doNotDisturbs,_that.alarms,_that.appUsageSchedules,_that.keyboard,_that.nightMode,_that.wifi,_that.deviceBackground,_that.volume,_that.system);case _:
|
||||
throw StateError('Unexpected subclass');
|
||||
|
||||
}
|
||||
@@ -424,10 +425,10 @@ return $default(_that.heartbeats,_that.bloodPressure,_that.alerts,_that.podomete
|
||||
/// }
|
||||
/// ```
|
||||
|
||||
@optionalTypeArgs TResult? whenOrNull<TResult extends Object?>(TResult? Function( DeviceCapabilityOptionEntity? heartbeats, DeviceCapabilityEnabledEntity? bloodPressure, DeviceCapabilityAlertsEntity? alerts, DeviceCapabilityEnabledEntity? podometer, DeviceCapabilityContactsEntity? contacts, DeviceCapabilitySettingsEntity? settings, DeviceCapabilityCommandsEntity? commands, DeviceCapabilityTakepillsEntity? takepills, DeviceCapabilityOptionEntity? location, DeviceCapabilityCameraEntity? camera, DeviceCapabilityDoNotDisturbEntity? doNotDisturbs, DeviceCapabilityAlarmsEntity? alarms, DeviceCapabilityAppUsageEntity? appUsageSchedules, DeviceCapabilityEnabledEntity? keyboard, DeviceCapabilityEnabledEntity? nightMode, DeviceCapabilityEnabledEntity? wifi, DeviceCapabilityEnabledEntity? deviceBackground, DeviceCapabilityVolumeEntity? volume)? $default,) {final _that = this;
|
||||
@optionalTypeArgs TResult? whenOrNull<TResult extends Object?>(TResult? Function( DeviceCapabilityOptionEntity? heartbeats, DeviceCapabilityEnabledEntity? bloodPressure, DeviceCapabilityAlertsEntity? alerts, DeviceCapabilityEnabledEntity? podometer, DeviceCapabilityContactsEntity? contacts, DeviceCapabilitySettingsEntity? settings, DeviceCapabilityCommandsEntity? commands, DeviceCapabilityTakepillsEntity? takepills, DeviceCapabilityOptionEntity? location, DeviceCapabilityCameraEntity? camera, DeviceCapabilityDoNotDisturbEntity? doNotDisturbs, DeviceCapabilityAlarmsEntity? alarms, DeviceCapabilityAppUsageEntity? appUsageSchedules, DeviceCapabilityEnabledEntity? keyboard, DeviceCapabilityEnabledEntity? nightMode, DeviceCapabilityEnabledEntity? wifi, DeviceCapabilityEnabledEntity? deviceBackground, DeviceCapabilityVolumeEntity? volume, String? system)? $default,) {final _that = this;
|
||||
switch (_that) {
|
||||
case _DeviceCapabilitiesEntity() when $default != null:
|
||||
return $default(_that.heartbeats,_that.bloodPressure,_that.alerts,_that.podometer,_that.contacts,_that.settings,_that.commands,_that.takepills,_that.location,_that.camera,_that.doNotDisturbs,_that.alarms,_that.appUsageSchedules,_that.keyboard,_that.nightMode,_that.wifi,_that.deviceBackground,_that.volume);case _:
|
||||
return $default(_that.heartbeats,_that.bloodPressure,_that.alerts,_that.podometer,_that.contacts,_that.settings,_that.commands,_that.takepills,_that.location,_that.camera,_that.doNotDisturbs,_that.alarms,_that.appUsageSchedules,_that.keyboard,_that.nightMode,_that.wifi,_that.deviceBackground,_that.volume,_that.system);case _:
|
||||
return null;
|
||||
|
||||
}
|
||||
@@ -439,7 +440,7 @@ return $default(_that.heartbeats,_that.bloodPressure,_that.alerts,_that.podomete
|
||||
|
||||
|
||||
class _DeviceCapabilitiesEntity implements DeviceCapabilitiesEntity {
|
||||
const _DeviceCapabilitiesEntity({this.heartbeats, this.bloodPressure, this.alerts, this.podometer, this.contacts, this.settings, this.commands, this.takepills, this.location, this.camera, this.doNotDisturbs, this.alarms, this.appUsageSchedules, this.keyboard, this.nightMode, this.wifi, this.deviceBackground, this.volume});
|
||||
const _DeviceCapabilitiesEntity({this.heartbeats, this.bloodPressure, this.alerts, this.podometer, this.contacts, this.settings, this.commands, this.takepills, this.location, this.camera, this.doNotDisturbs, this.alarms, this.appUsageSchedules, this.keyboard, this.nightMode, this.wifi, this.deviceBackground, this.volume, this.system});
|
||||
|
||||
|
||||
@override final DeviceCapabilityOptionEntity? heartbeats;
|
||||
@@ -460,6 +461,7 @@ class _DeviceCapabilitiesEntity implements DeviceCapabilitiesEntity {
|
||||
@override final DeviceCapabilityEnabledEntity? wifi;
|
||||
@override final DeviceCapabilityEnabledEntity? deviceBackground;
|
||||
@override final DeviceCapabilityVolumeEntity? volume;
|
||||
@override final String? system;
|
||||
|
||||
/// Create a copy of DeviceCapabilitiesEntity
|
||||
/// with the given fields replaced by the non-null parameter values.
|
||||
@@ -471,16 +473,16 @@ _$DeviceCapabilitiesEntityCopyWith<_DeviceCapabilitiesEntity> get copyWith => __
|
||||
|
||||
@override
|
||||
bool operator ==(Object other) {
|
||||
return identical(this, other) || (other.runtimeType == runtimeType&&other is _DeviceCapabilitiesEntity&&(identical(other.heartbeats, heartbeats) || other.heartbeats == heartbeats)&&(identical(other.bloodPressure, bloodPressure) || other.bloodPressure == bloodPressure)&&(identical(other.alerts, alerts) || other.alerts == alerts)&&(identical(other.podometer, podometer) || other.podometer == podometer)&&(identical(other.contacts, contacts) || other.contacts == contacts)&&(identical(other.settings, settings) || other.settings == settings)&&(identical(other.commands, commands) || other.commands == commands)&&(identical(other.takepills, takepills) || other.takepills == takepills)&&(identical(other.location, location) || other.location == location)&&(identical(other.camera, camera) || other.camera == camera)&&(identical(other.doNotDisturbs, doNotDisturbs) || other.doNotDisturbs == doNotDisturbs)&&(identical(other.alarms, alarms) || other.alarms == alarms)&&(identical(other.appUsageSchedules, appUsageSchedules) || other.appUsageSchedules == appUsageSchedules)&&(identical(other.keyboard, keyboard) || other.keyboard == keyboard)&&(identical(other.nightMode, nightMode) || other.nightMode == nightMode)&&(identical(other.wifi, wifi) || other.wifi == wifi)&&(identical(other.deviceBackground, deviceBackground) || other.deviceBackground == deviceBackground)&&(identical(other.volume, volume) || other.volume == volume));
|
||||
return identical(this, other) || (other.runtimeType == runtimeType&&other is _DeviceCapabilitiesEntity&&(identical(other.heartbeats, heartbeats) || other.heartbeats == heartbeats)&&(identical(other.bloodPressure, bloodPressure) || other.bloodPressure == bloodPressure)&&(identical(other.alerts, alerts) || other.alerts == alerts)&&(identical(other.podometer, podometer) || other.podometer == podometer)&&(identical(other.contacts, contacts) || other.contacts == contacts)&&(identical(other.settings, settings) || other.settings == settings)&&(identical(other.commands, commands) || other.commands == commands)&&(identical(other.takepills, takepills) || other.takepills == takepills)&&(identical(other.location, location) || other.location == location)&&(identical(other.camera, camera) || other.camera == camera)&&(identical(other.doNotDisturbs, doNotDisturbs) || other.doNotDisturbs == doNotDisturbs)&&(identical(other.alarms, alarms) || other.alarms == alarms)&&(identical(other.appUsageSchedules, appUsageSchedules) || other.appUsageSchedules == appUsageSchedules)&&(identical(other.keyboard, keyboard) || other.keyboard == keyboard)&&(identical(other.nightMode, nightMode) || other.nightMode == nightMode)&&(identical(other.wifi, wifi) || other.wifi == wifi)&&(identical(other.deviceBackground, deviceBackground) || other.deviceBackground == deviceBackground)&&(identical(other.volume, volume) || other.volume == volume)&&(identical(other.system, system) || other.system == system));
|
||||
}
|
||||
|
||||
|
||||
@override
|
||||
int get hashCode => Object.hash(runtimeType,heartbeats,bloodPressure,alerts,podometer,contacts,settings,commands,takepills,location,camera,doNotDisturbs,alarms,appUsageSchedules,keyboard,nightMode,wifi,deviceBackground,volume);
|
||||
int get hashCode => Object.hashAll([runtimeType,heartbeats,bloodPressure,alerts,podometer,contacts,settings,commands,takepills,location,camera,doNotDisturbs,alarms,appUsageSchedules,keyboard,nightMode,wifi,deviceBackground,volume,system]);
|
||||
|
||||
@override
|
||||
String toString() {
|
||||
return 'DeviceCapabilitiesEntity(heartbeats: $heartbeats, bloodPressure: $bloodPressure, alerts: $alerts, podometer: $podometer, contacts: $contacts, settings: $settings, commands: $commands, takepills: $takepills, location: $location, camera: $camera, doNotDisturbs: $doNotDisturbs, alarms: $alarms, appUsageSchedules: $appUsageSchedules, keyboard: $keyboard, nightMode: $nightMode, wifi: $wifi, deviceBackground: $deviceBackground, volume: $volume)';
|
||||
return 'DeviceCapabilitiesEntity(heartbeats: $heartbeats, bloodPressure: $bloodPressure, alerts: $alerts, podometer: $podometer, contacts: $contacts, settings: $settings, commands: $commands, takepills: $takepills, location: $location, camera: $camera, doNotDisturbs: $doNotDisturbs, alarms: $alarms, appUsageSchedules: $appUsageSchedules, keyboard: $keyboard, nightMode: $nightMode, wifi: $wifi, deviceBackground: $deviceBackground, volume: $volume, system: $system)';
|
||||
}
|
||||
|
||||
|
||||
@@ -491,7 +493,7 @@ abstract mixin class _$DeviceCapabilitiesEntityCopyWith<$Res> implements $Device
|
||||
factory _$DeviceCapabilitiesEntityCopyWith(_DeviceCapabilitiesEntity value, $Res Function(_DeviceCapabilitiesEntity) _then) = __$DeviceCapabilitiesEntityCopyWithImpl;
|
||||
@override @useResult
|
||||
$Res call({
|
||||
DeviceCapabilityOptionEntity? heartbeats, DeviceCapabilityEnabledEntity? bloodPressure, DeviceCapabilityAlertsEntity? alerts, DeviceCapabilityEnabledEntity? podometer, DeviceCapabilityContactsEntity? contacts, DeviceCapabilitySettingsEntity? settings, DeviceCapabilityCommandsEntity? commands, DeviceCapabilityTakepillsEntity? takepills, DeviceCapabilityOptionEntity? location, DeviceCapabilityCameraEntity? camera, DeviceCapabilityDoNotDisturbEntity? doNotDisturbs, DeviceCapabilityAlarmsEntity? alarms, DeviceCapabilityAppUsageEntity? appUsageSchedules, DeviceCapabilityEnabledEntity? keyboard, DeviceCapabilityEnabledEntity? nightMode, DeviceCapabilityEnabledEntity? wifi, DeviceCapabilityEnabledEntity? deviceBackground, DeviceCapabilityVolumeEntity? volume
|
||||
DeviceCapabilityOptionEntity? heartbeats, DeviceCapabilityEnabledEntity? bloodPressure, DeviceCapabilityAlertsEntity? alerts, DeviceCapabilityEnabledEntity? podometer, DeviceCapabilityContactsEntity? contacts, DeviceCapabilitySettingsEntity? settings, DeviceCapabilityCommandsEntity? commands, DeviceCapabilityTakepillsEntity? takepills, DeviceCapabilityOptionEntity? location, DeviceCapabilityCameraEntity? camera, DeviceCapabilityDoNotDisturbEntity? doNotDisturbs, DeviceCapabilityAlarmsEntity? alarms, DeviceCapabilityAppUsageEntity? appUsageSchedules, DeviceCapabilityEnabledEntity? keyboard, DeviceCapabilityEnabledEntity? nightMode, DeviceCapabilityEnabledEntity? wifi, DeviceCapabilityEnabledEntity? deviceBackground, DeviceCapabilityVolumeEntity? volume, String? system
|
||||
});
|
||||
|
||||
|
||||
@@ -508,7 +510,7 @@ class __$DeviceCapabilitiesEntityCopyWithImpl<$Res>
|
||||
|
||||
/// Create a copy of DeviceCapabilitiesEntity
|
||||
/// with the given fields replaced by the non-null parameter values.
|
||||
@override @pragma('vm:prefer-inline') $Res call({Object? heartbeats = freezed,Object? bloodPressure = freezed,Object? alerts = freezed,Object? podometer = freezed,Object? contacts = freezed,Object? settings = freezed,Object? commands = freezed,Object? takepills = freezed,Object? location = freezed,Object? camera = freezed,Object? doNotDisturbs = freezed,Object? alarms = freezed,Object? appUsageSchedules = freezed,Object? keyboard = freezed,Object? nightMode = freezed,Object? wifi = freezed,Object? deviceBackground = freezed,Object? volume = freezed,}) {
|
||||
@override @pragma('vm:prefer-inline') $Res call({Object? heartbeats = freezed,Object? bloodPressure = freezed,Object? alerts = freezed,Object? podometer = freezed,Object? contacts = freezed,Object? settings = freezed,Object? commands = freezed,Object? takepills = freezed,Object? location = freezed,Object? camera = freezed,Object? doNotDisturbs = freezed,Object? alarms = freezed,Object? appUsageSchedules = freezed,Object? keyboard = freezed,Object? nightMode = freezed,Object? wifi = freezed,Object? deviceBackground = freezed,Object? volume = freezed,Object? system = freezed,}) {
|
||||
return _then(_DeviceCapabilitiesEntity(
|
||||
heartbeats: freezed == heartbeats ? _self.heartbeats : heartbeats // ignore: cast_nullable_to_non_nullable
|
||||
as DeviceCapabilityOptionEntity?,bloodPressure: freezed == bloodPressure ? _self.bloodPressure : bloodPressure // ignore: cast_nullable_to_non_nullable
|
||||
@@ -528,7 +530,8 @@ as DeviceCapabilityEnabledEntity?,nightMode: freezed == nightMode ? _self.nightM
|
||||
as DeviceCapabilityEnabledEntity?,wifi: freezed == wifi ? _self.wifi : wifi // ignore: cast_nullable_to_non_nullable
|
||||
as DeviceCapabilityEnabledEntity?,deviceBackground: freezed == deviceBackground ? _self.deviceBackground : deviceBackground // ignore: cast_nullable_to_non_nullable
|
||||
as DeviceCapabilityEnabledEntity?,volume: freezed == volume ? _self.volume : volume // ignore: cast_nullable_to_non_nullable
|
||||
as DeviceCapabilityVolumeEntity?,
|
||||
as DeviceCapabilityVolumeEntity?,system: freezed == system ? _self.system : system // ignore: cast_nullable_to_non_nullable
|
||||
as String?,
|
||||
));
|
||||
}
|
||||
|
||||
|
||||
@@ -14,7 +14,7 @@ T _$identity<T>(T value) => value;
|
||||
/// @nodoc
|
||||
mixin _$DeviceEntity {
|
||||
|
||||
String get id; String get identificator; int? get battery; String? get userId; String? get companyId; String? get delegationId; String? get groupId; Map<String, dynamic> get flags; List<String>? get tags; String? get lastConnection; String? get carrierGenre; String? get carrierBirthday; int? get carrierWeight; int? get carrierStepLength; String? get carrierName; String? get comment; String? get phone; String? get simId; Map<String, dynamic>? get paymentOptions; DeviceSettingsEntity get settings; String get connectionServer; String get protocol; String get type; bool get queueCommands; DeviceCapabilitiesEntity? get capabilities; String? get backgroundImageId; String get createdAt; String? get updatedAt;
|
||||
String get id; String get identificator; int? get battery; String? get userId; String? get companyId; String? get delegationId; String? get groupId; Map<String, dynamic> get flags; List<String>? get tags; String? get lastConnection; String? get carrierGenre; String? get carrierBirthday; int? get carrierWeight; int? get carrierStepLength; String? get carrierName; String? get comment; String? get phone; String? get simId; Map<String, dynamic>? get paymentOptions; DeviceSettingsEntity get settings; String get connectionServer; String get protocol; String get type; String? get imei; bool get queueCommands; DeviceCapabilitiesEntity? get capabilities; String? get backgroundImageId; String get createdAt; String? get updatedAt;
|
||||
/// Create a copy of DeviceEntity
|
||||
/// with the given fields replaced by the non-null parameter values.
|
||||
@JsonKey(includeFromJson: false, includeToJson: false)
|
||||
@@ -25,16 +25,16 @@ $DeviceEntityCopyWith<DeviceEntity> get copyWith => _$DeviceEntityCopyWithImpl<D
|
||||
|
||||
@override
|
||||
bool operator ==(Object other) {
|
||||
return identical(this, other) || (other.runtimeType == runtimeType&&other is DeviceEntity&&(identical(other.id, id) || other.id == id)&&(identical(other.identificator, identificator) || other.identificator == identificator)&&(identical(other.battery, battery) || other.battery == battery)&&(identical(other.userId, userId) || other.userId == userId)&&(identical(other.companyId, companyId) || other.companyId == companyId)&&(identical(other.delegationId, delegationId) || other.delegationId == delegationId)&&(identical(other.groupId, groupId) || other.groupId == groupId)&&const DeepCollectionEquality().equals(other.flags, flags)&&const DeepCollectionEquality().equals(other.tags, tags)&&(identical(other.lastConnection, lastConnection) || other.lastConnection == lastConnection)&&(identical(other.carrierGenre, carrierGenre) || other.carrierGenre == carrierGenre)&&(identical(other.carrierBirthday, carrierBirthday) || other.carrierBirthday == carrierBirthday)&&(identical(other.carrierWeight, carrierWeight) || other.carrierWeight == carrierWeight)&&(identical(other.carrierStepLength, carrierStepLength) || other.carrierStepLength == carrierStepLength)&&(identical(other.carrierName, carrierName) || other.carrierName == carrierName)&&(identical(other.comment, comment) || other.comment == comment)&&(identical(other.phone, phone) || other.phone == phone)&&(identical(other.simId, simId) || other.simId == simId)&&const DeepCollectionEquality().equals(other.paymentOptions, paymentOptions)&&(identical(other.settings, settings) || other.settings == settings)&&(identical(other.connectionServer, connectionServer) || other.connectionServer == connectionServer)&&(identical(other.protocol, protocol) || other.protocol == protocol)&&(identical(other.type, type) || other.type == type)&&(identical(other.queueCommands, queueCommands) || other.queueCommands == queueCommands)&&(identical(other.capabilities, capabilities) || other.capabilities == capabilities)&&(identical(other.backgroundImageId, backgroundImageId) || other.backgroundImageId == backgroundImageId)&&(identical(other.createdAt, createdAt) || other.createdAt == createdAt)&&(identical(other.updatedAt, updatedAt) || other.updatedAt == updatedAt));
|
||||
return identical(this, other) || (other.runtimeType == runtimeType&&other is DeviceEntity&&(identical(other.id, id) || other.id == id)&&(identical(other.identificator, identificator) || other.identificator == identificator)&&(identical(other.battery, battery) || other.battery == battery)&&(identical(other.userId, userId) || other.userId == userId)&&(identical(other.companyId, companyId) || other.companyId == companyId)&&(identical(other.delegationId, delegationId) || other.delegationId == delegationId)&&(identical(other.groupId, groupId) || other.groupId == groupId)&&const DeepCollectionEquality().equals(other.flags, flags)&&const DeepCollectionEquality().equals(other.tags, tags)&&(identical(other.lastConnection, lastConnection) || other.lastConnection == lastConnection)&&(identical(other.carrierGenre, carrierGenre) || other.carrierGenre == carrierGenre)&&(identical(other.carrierBirthday, carrierBirthday) || other.carrierBirthday == carrierBirthday)&&(identical(other.carrierWeight, carrierWeight) || other.carrierWeight == carrierWeight)&&(identical(other.carrierStepLength, carrierStepLength) || other.carrierStepLength == carrierStepLength)&&(identical(other.carrierName, carrierName) || other.carrierName == carrierName)&&(identical(other.comment, comment) || other.comment == comment)&&(identical(other.phone, phone) || other.phone == phone)&&(identical(other.simId, simId) || other.simId == simId)&&const DeepCollectionEquality().equals(other.paymentOptions, paymentOptions)&&(identical(other.settings, settings) || other.settings == settings)&&(identical(other.connectionServer, connectionServer) || other.connectionServer == connectionServer)&&(identical(other.protocol, protocol) || other.protocol == protocol)&&(identical(other.type, type) || other.type == type)&&(identical(other.imei, imei) || other.imei == imei)&&(identical(other.queueCommands, queueCommands) || other.queueCommands == queueCommands)&&(identical(other.capabilities, capabilities) || other.capabilities == capabilities)&&(identical(other.backgroundImageId, backgroundImageId) || other.backgroundImageId == backgroundImageId)&&(identical(other.createdAt, createdAt) || other.createdAt == createdAt)&&(identical(other.updatedAt, updatedAt) || other.updatedAt == updatedAt));
|
||||
}
|
||||
|
||||
|
||||
@override
|
||||
int get hashCode => Object.hashAll([runtimeType,id,identificator,battery,userId,companyId,delegationId,groupId,const DeepCollectionEquality().hash(flags),const DeepCollectionEquality().hash(tags),lastConnection,carrierGenre,carrierBirthday,carrierWeight,carrierStepLength,carrierName,comment,phone,simId,const DeepCollectionEquality().hash(paymentOptions),settings,connectionServer,protocol,type,queueCommands,capabilities,backgroundImageId,createdAt,updatedAt]);
|
||||
int get hashCode => Object.hashAll([runtimeType,id,identificator,battery,userId,companyId,delegationId,groupId,const DeepCollectionEquality().hash(flags),const DeepCollectionEquality().hash(tags),lastConnection,carrierGenre,carrierBirthday,carrierWeight,carrierStepLength,carrierName,comment,phone,simId,const DeepCollectionEquality().hash(paymentOptions),settings,connectionServer,protocol,type,imei,queueCommands,capabilities,backgroundImageId,createdAt,updatedAt]);
|
||||
|
||||
@override
|
||||
String toString() {
|
||||
return 'DeviceEntity(id: $id, identificator: $identificator, battery: $battery, userId: $userId, companyId: $companyId, delegationId: $delegationId, groupId: $groupId, flags: $flags, tags: $tags, lastConnection: $lastConnection, carrierGenre: $carrierGenre, carrierBirthday: $carrierBirthday, carrierWeight: $carrierWeight, carrierStepLength: $carrierStepLength, carrierName: $carrierName, comment: $comment, phone: $phone, simId: $simId, paymentOptions: $paymentOptions, settings: $settings, connectionServer: $connectionServer, protocol: $protocol, type: $type, queueCommands: $queueCommands, capabilities: $capabilities, backgroundImageId: $backgroundImageId, createdAt: $createdAt, updatedAt: $updatedAt)';
|
||||
return 'DeviceEntity(id: $id, identificator: $identificator, battery: $battery, userId: $userId, companyId: $companyId, delegationId: $delegationId, groupId: $groupId, flags: $flags, tags: $tags, lastConnection: $lastConnection, carrierGenre: $carrierGenre, carrierBirthday: $carrierBirthday, carrierWeight: $carrierWeight, carrierStepLength: $carrierStepLength, carrierName: $carrierName, comment: $comment, phone: $phone, simId: $simId, paymentOptions: $paymentOptions, settings: $settings, connectionServer: $connectionServer, protocol: $protocol, type: $type, imei: $imei, queueCommands: $queueCommands, capabilities: $capabilities, backgroundImageId: $backgroundImageId, createdAt: $createdAt, updatedAt: $updatedAt)';
|
||||
}
|
||||
|
||||
|
||||
@@ -45,7 +45,7 @@ abstract mixin class $DeviceEntityCopyWith<$Res> {
|
||||
factory $DeviceEntityCopyWith(DeviceEntity value, $Res Function(DeviceEntity) _then) = _$DeviceEntityCopyWithImpl;
|
||||
@useResult
|
||||
$Res call({
|
||||
String id, String identificator, int? battery, String? userId, String? companyId, String? delegationId, String? groupId, Map<String, dynamic> flags, List<String>? tags, String? lastConnection, String? carrierGenre, String? carrierBirthday, int? carrierWeight, int? carrierStepLength, String? carrierName, String? comment, String? phone, String? simId, Map<String, dynamic>? paymentOptions, DeviceSettingsEntity settings, String connectionServer, String protocol, String type, bool queueCommands, DeviceCapabilitiesEntity? capabilities, String? backgroundImageId, String createdAt, String? updatedAt
|
||||
String id, String identificator, int? battery, String? userId, String? companyId, String? delegationId, String? groupId, Map<String, dynamic> flags, List<String>? tags, String? lastConnection, String? carrierGenre, String? carrierBirthday, int? carrierWeight, int? carrierStepLength, String? carrierName, String? comment, String? phone, String? simId, Map<String, dynamic>? paymentOptions, DeviceSettingsEntity settings, String connectionServer, String protocol, String type, String? imei, bool queueCommands, DeviceCapabilitiesEntity? capabilities, String? backgroundImageId, String createdAt, String? updatedAt
|
||||
});
|
||||
|
||||
|
||||
@@ -62,7 +62,7 @@ class _$DeviceEntityCopyWithImpl<$Res>
|
||||
|
||||
/// Create a copy of DeviceEntity
|
||||
/// with the given fields replaced by the non-null parameter values.
|
||||
@pragma('vm:prefer-inline') @override $Res call({Object? id = null,Object? identificator = null,Object? battery = freezed,Object? userId = freezed,Object? companyId = freezed,Object? delegationId = freezed,Object? groupId = freezed,Object? flags = null,Object? tags = freezed,Object? lastConnection = freezed,Object? carrierGenre = freezed,Object? carrierBirthday = freezed,Object? carrierWeight = freezed,Object? carrierStepLength = freezed,Object? carrierName = freezed,Object? comment = freezed,Object? phone = freezed,Object? simId = freezed,Object? paymentOptions = freezed,Object? settings = null,Object? connectionServer = null,Object? protocol = null,Object? type = null,Object? queueCommands = null,Object? capabilities = freezed,Object? backgroundImageId = freezed,Object? createdAt = null,Object? updatedAt = freezed,}) {
|
||||
@pragma('vm:prefer-inline') @override $Res call({Object? id = null,Object? identificator = null,Object? battery = freezed,Object? userId = freezed,Object? companyId = freezed,Object? delegationId = freezed,Object? groupId = freezed,Object? flags = null,Object? tags = freezed,Object? lastConnection = freezed,Object? carrierGenre = freezed,Object? carrierBirthday = freezed,Object? carrierWeight = freezed,Object? carrierStepLength = freezed,Object? carrierName = freezed,Object? comment = freezed,Object? phone = freezed,Object? simId = freezed,Object? paymentOptions = freezed,Object? settings = null,Object? connectionServer = null,Object? protocol = null,Object? type = null,Object? imei = freezed,Object? queueCommands = null,Object? capabilities = freezed,Object? backgroundImageId = freezed,Object? createdAt = null,Object? updatedAt = freezed,}) {
|
||||
return _then(_self.copyWith(
|
||||
id: null == id ? _self.id : id // ignore: cast_nullable_to_non_nullable
|
||||
as String,identificator: null == identificator ? _self.identificator : identificator // ignore: cast_nullable_to_non_nullable
|
||||
@@ -87,7 +87,8 @@ as Map<String, dynamic>?,settings: null == settings ? _self.settings : settings
|
||||
as DeviceSettingsEntity,connectionServer: null == connectionServer ? _self.connectionServer : connectionServer // ignore: cast_nullable_to_non_nullable
|
||||
as String,protocol: null == protocol ? _self.protocol : protocol // ignore: cast_nullable_to_non_nullable
|
||||
as String,type: null == type ? _self.type : type // ignore: cast_nullable_to_non_nullable
|
||||
as String,queueCommands: null == queueCommands ? _self.queueCommands : queueCommands // ignore: cast_nullable_to_non_nullable
|
||||
as String,imei: freezed == imei ? _self.imei : imei // ignore: cast_nullable_to_non_nullable
|
||||
as String?,queueCommands: null == queueCommands ? _self.queueCommands : queueCommands // ignore: cast_nullable_to_non_nullable
|
||||
as bool,capabilities: freezed == capabilities ? _self.capabilities : capabilities // ignore: cast_nullable_to_non_nullable
|
||||
as DeviceCapabilitiesEntity?,backgroundImageId: freezed == backgroundImageId ? _self.backgroundImageId : backgroundImageId // ignore: cast_nullable_to_non_nullable
|
||||
as String?,createdAt: null == createdAt ? _self.createdAt : createdAt // ignore: cast_nullable_to_non_nullable
|
||||
@@ -198,10 +199,10 @@ return $default(_that);case _:
|
||||
/// }
|
||||
/// ```
|
||||
|
||||
@optionalTypeArgs TResult maybeWhen<TResult extends Object?>(TResult Function( String id, String identificator, int? battery, String? userId, String? companyId, String? delegationId, String? groupId, Map<String, dynamic> flags, List<String>? tags, String? lastConnection, String? carrierGenre, String? carrierBirthday, int? carrierWeight, int? carrierStepLength, String? carrierName, String? comment, String? phone, String? simId, Map<String, dynamic>? paymentOptions, DeviceSettingsEntity settings, String connectionServer, String protocol, String type, bool queueCommands, DeviceCapabilitiesEntity? capabilities, String? backgroundImageId, String createdAt, String? updatedAt)? $default,{required TResult orElse(),}) {final _that = this;
|
||||
@optionalTypeArgs TResult maybeWhen<TResult extends Object?>(TResult Function( String id, String identificator, int? battery, String? userId, String? companyId, String? delegationId, String? groupId, Map<String, dynamic> flags, List<String>? tags, String? lastConnection, String? carrierGenre, String? carrierBirthday, int? carrierWeight, int? carrierStepLength, String? carrierName, String? comment, String? phone, String? simId, Map<String, dynamic>? paymentOptions, DeviceSettingsEntity settings, String connectionServer, String protocol, String type, String? imei, bool queueCommands, DeviceCapabilitiesEntity? capabilities, String? backgroundImageId, String createdAt, String? updatedAt)? $default,{required TResult orElse(),}) {final _that = this;
|
||||
switch (_that) {
|
||||
case _DeviceEntity() when $default != null:
|
||||
return $default(_that.id,_that.identificator,_that.battery,_that.userId,_that.companyId,_that.delegationId,_that.groupId,_that.flags,_that.tags,_that.lastConnection,_that.carrierGenre,_that.carrierBirthday,_that.carrierWeight,_that.carrierStepLength,_that.carrierName,_that.comment,_that.phone,_that.simId,_that.paymentOptions,_that.settings,_that.connectionServer,_that.protocol,_that.type,_that.queueCommands,_that.capabilities,_that.backgroundImageId,_that.createdAt,_that.updatedAt);case _:
|
||||
return $default(_that.id,_that.identificator,_that.battery,_that.userId,_that.companyId,_that.delegationId,_that.groupId,_that.flags,_that.tags,_that.lastConnection,_that.carrierGenre,_that.carrierBirthday,_that.carrierWeight,_that.carrierStepLength,_that.carrierName,_that.comment,_that.phone,_that.simId,_that.paymentOptions,_that.settings,_that.connectionServer,_that.protocol,_that.type,_that.imei,_that.queueCommands,_that.capabilities,_that.backgroundImageId,_that.createdAt,_that.updatedAt);case _:
|
||||
return orElse();
|
||||
|
||||
}
|
||||
@@ -219,10 +220,10 @@ return $default(_that.id,_that.identificator,_that.battery,_that.userId,_that.co
|
||||
/// }
|
||||
/// ```
|
||||
|
||||
@optionalTypeArgs TResult when<TResult extends Object?>(TResult Function( String id, String identificator, int? battery, String? userId, String? companyId, String? delegationId, String? groupId, Map<String, dynamic> flags, List<String>? tags, String? lastConnection, String? carrierGenre, String? carrierBirthday, int? carrierWeight, int? carrierStepLength, String? carrierName, String? comment, String? phone, String? simId, Map<String, dynamic>? paymentOptions, DeviceSettingsEntity settings, String connectionServer, String protocol, String type, bool queueCommands, DeviceCapabilitiesEntity? capabilities, String? backgroundImageId, String createdAt, String? updatedAt) $default,) {final _that = this;
|
||||
@optionalTypeArgs TResult when<TResult extends Object?>(TResult Function( String id, String identificator, int? battery, String? userId, String? companyId, String? delegationId, String? groupId, Map<String, dynamic> flags, List<String>? tags, String? lastConnection, String? carrierGenre, String? carrierBirthday, int? carrierWeight, int? carrierStepLength, String? carrierName, String? comment, String? phone, String? simId, Map<String, dynamic>? paymentOptions, DeviceSettingsEntity settings, String connectionServer, String protocol, String type, String? imei, bool queueCommands, DeviceCapabilitiesEntity? capabilities, String? backgroundImageId, String createdAt, String? updatedAt) $default,) {final _that = this;
|
||||
switch (_that) {
|
||||
case _DeviceEntity():
|
||||
return $default(_that.id,_that.identificator,_that.battery,_that.userId,_that.companyId,_that.delegationId,_that.groupId,_that.flags,_that.tags,_that.lastConnection,_that.carrierGenre,_that.carrierBirthday,_that.carrierWeight,_that.carrierStepLength,_that.carrierName,_that.comment,_that.phone,_that.simId,_that.paymentOptions,_that.settings,_that.connectionServer,_that.protocol,_that.type,_that.queueCommands,_that.capabilities,_that.backgroundImageId,_that.createdAt,_that.updatedAt);case _:
|
||||
return $default(_that.id,_that.identificator,_that.battery,_that.userId,_that.companyId,_that.delegationId,_that.groupId,_that.flags,_that.tags,_that.lastConnection,_that.carrierGenre,_that.carrierBirthday,_that.carrierWeight,_that.carrierStepLength,_that.carrierName,_that.comment,_that.phone,_that.simId,_that.paymentOptions,_that.settings,_that.connectionServer,_that.protocol,_that.type,_that.imei,_that.queueCommands,_that.capabilities,_that.backgroundImageId,_that.createdAt,_that.updatedAt);case _:
|
||||
throw StateError('Unexpected subclass');
|
||||
|
||||
}
|
||||
@@ -239,10 +240,10 @@ return $default(_that.id,_that.identificator,_that.battery,_that.userId,_that.co
|
||||
/// }
|
||||
/// ```
|
||||
|
||||
@optionalTypeArgs TResult? whenOrNull<TResult extends Object?>(TResult? Function( String id, String identificator, int? battery, String? userId, String? companyId, String? delegationId, String? groupId, Map<String, dynamic> flags, List<String>? tags, String? lastConnection, String? carrierGenre, String? carrierBirthday, int? carrierWeight, int? carrierStepLength, String? carrierName, String? comment, String? phone, String? simId, Map<String, dynamic>? paymentOptions, DeviceSettingsEntity settings, String connectionServer, String protocol, String type, bool queueCommands, DeviceCapabilitiesEntity? capabilities, String? backgroundImageId, String createdAt, String? updatedAt)? $default,) {final _that = this;
|
||||
@optionalTypeArgs TResult? whenOrNull<TResult extends Object?>(TResult? Function( String id, String identificator, int? battery, String? userId, String? companyId, String? delegationId, String? groupId, Map<String, dynamic> flags, List<String>? tags, String? lastConnection, String? carrierGenre, String? carrierBirthday, int? carrierWeight, int? carrierStepLength, String? carrierName, String? comment, String? phone, String? simId, Map<String, dynamic>? paymentOptions, DeviceSettingsEntity settings, String connectionServer, String protocol, String type, String? imei, bool queueCommands, DeviceCapabilitiesEntity? capabilities, String? backgroundImageId, String createdAt, String? updatedAt)? $default,) {final _that = this;
|
||||
switch (_that) {
|
||||
case _DeviceEntity() when $default != null:
|
||||
return $default(_that.id,_that.identificator,_that.battery,_that.userId,_that.companyId,_that.delegationId,_that.groupId,_that.flags,_that.tags,_that.lastConnection,_that.carrierGenre,_that.carrierBirthday,_that.carrierWeight,_that.carrierStepLength,_that.carrierName,_that.comment,_that.phone,_that.simId,_that.paymentOptions,_that.settings,_that.connectionServer,_that.protocol,_that.type,_that.queueCommands,_that.capabilities,_that.backgroundImageId,_that.createdAt,_that.updatedAt);case _:
|
||||
return $default(_that.id,_that.identificator,_that.battery,_that.userId,_that.companyId,_that.delegationId,_that.groupId,_that.flags,_that.tags,_that.lastConnection,_that.carrierGenre,_that.carrierBirthday,_that.carrierWeight,_that.carrierStepLength,_that.carrierName,_that.comment,_that.phone,_that.simId,_that.paymentOptions,_that.settings,_that.connectionServer,_that.protocol,_that.type,_that.imei,_that.queueCommands,_that.capabilities,_that.backgroundImageId,_that.createdAt,_that.updatedAt);case _:
|
||||
return null;
|
||||
|
||||
}
|
||||
@@ -254,7 +255,7 @@ return $default(_that.id,_that.identificator,_that.battery,_that.userId,_that.co
|
||||
|
||||
|
||||
class _DeviceEntity implements DeviceEntity {
|
||||
const _DeviceEntity({required this.id, required this.identificator, this.battery, this.userId, this.companyId, this.delegationId, this.groupId, final Map<String, dynamic> flags = const {}, final List<String>? tags, this.lastConnection, this.carrierGenre, this.carrierBirthday, this.carrierWeight, this.carrierStepLength, this.carrierName, this.comment, this.phone, this.simId, final Map<String, dynamic>? paymentOptions, this.settings = const DeviceSettingsEntity(), this.connectionServer = '', this.protocol = '', this.type = '', this.queueCommands = false, this.capabilities, this.backgroundImageId, this.createdAt = '', this.updatedAt}): _flags = flags,_tags = tags,_paymentOptions = paymentOptions;
|
||||
const _DeviceEntity({required this.id, required this.identificator, this.battery, this.userId, this.companyId, this.delegationId, this.groupId, final Map<String, dynamic> flags = const {}, final List<String>? tags, this.lastConnection, this.carrierGenre, this.carrierBirthday, this.carrierWeight, this.carrierStepLength, this.carrierName, this.comment, this.phone, this.simId, final Map<String, dynamic>? paymentOptions, this.settings = const DeviceSettingsEntity(), this.connectionServer = '', this.protocol = '', this.type = '', this.imei, this.queueCommands = false, this.capabilities, this.backgroundImageId, this.createdAt = '', this.updatedAt}): _flags = flags,_tags = tags,_paymentOptions = paymentOptions;
|
||||
|
||||
|
||||
@override final String id;
|
||||
@@ -302,6 +303,7 @@ class _DeviceEntity implements DeviceEntity {
|
||||
@override@JsonKey() final String connectionServer;
|
||||
@override@JsonKey() final String protocol;
|
||||
@override@JsonKey() final String type;
|
||||
@override final String? imei;
|
||||
@override@JsonKey() final bool queueCommands;
|
||||
@override final DeviceCapabilitiesEntity? capabilities;
|
||||
@override final String? backgroundImageId;
|
||||
@@ -318,16 +320,16 @@ _$DeviceEntityCopyWith<_DeviceEntity> get copyWith => __$DeviceEntityCopyWithImp
|
||||
|
||||
@override
|
||||
bool operator ==(Object other) {
|
||||
return identical(this, other) || (other.runtimeType == runtimeType&&other is _DeviceEntity&&(identical(other.id, id) || other.id == id)&&(identical(other.identificator, identificator) || other.identificator == identificator)&&(identical(other.battery, battery) || other.battery == battery)&&(identical(other.userId, userId) || other.userId == userId)&&(identical(other.companyId, companyId) || other.companyId == companyId)&&(identical(other.delegationId, delegationId) || other.delegationId == delegationId)&&(identical(other.groupId, groupId) || other.groupId == groupId)&&const DeepCollectionEquality().equals(other._flags, _flags)&&const DeepCollectionEquality().equals(other._tags, _tags)&&(identical(other.lastConnection, lastConnection) || other.lastConnection == lastConnection)&&(identical(other.carrierGenre, carrierGenre) || other.carrierGenre == carrierGenre)&&(identical(other.carrierBirthday, carrierBirthday) || other.carrierBirthday == carrierBirthday)&&(identical(other.carrierWeight, carrierWeight) || other.carrierWeight == carrierWeight)&&(identical(other.carrierStepLength, carrierStepLength) || other.carrierStepLength == carrierStepLength)&&(identical(other.carrierName, carrierName) || other.carrierName == carrierName)&&(identical(other.comment, comment) || other.comment == comment)&&(identical(other.phone, phone) || other.phone == phone)&&(identical(other.simId, simId) || other.simId == simId)&&const DeepCollectionEquality().equals(other._paymentOptions, _paymentOptions)&&(identical(other.settings, settings) || other.settings == settings)&&(identical(other.connectionServer, connectionServer) || other.connectionServer == connectionServer)&&(identical(other.protocol, protocol) || other.protocol == protocol)&&(identical(other.type, type) || other.type == type)&&(identical(other.queueCommands, queueCommands) || other.queueCommands == queueCommands)&&(identical(other.capabilities, capabilities) || other.capabilities == capabilities)&&(identical(other.backgroundImageId, backgroundImageId) || other.backgroundImageId == backgroundImageId)&&(identical(other.createdAt, createdAt) || other.createdAt == createdAt)&&(identical(other.updatedAt, updatedAt) || other.updatedAt == updatedAt));
|
||||
return identical(this, other) || (other.runtimeType == runtimeType&&other is _DeviceEntity&&(identical(other.id, id) || other.id == id)&&(identical(other.identificator, identificator) || other.identificator == identificator)&&(identical(other.battery, battery) || other.battery == battery)&&(identical(other.userId, userId) || other.userId == userId)&&(identical(other.companyId, companyId) || other.companyId == companyId)&&(identical(other.delegationId, delegationId) || other.delegationId == delegationId)&&(identical(other.groupId, groupId) || other.groupId == groupId)&&const DeepCollectionEquality().equals(other._flags, _flags)&&const DeepCollectionEquality().equals(other._tags, _tags)&&(identical(other.lastConnection, lastConnection) || other.lastConnection == lastConnection)&&(identical(other.carrierGenre, carrierGenre) || other.carrierGenre == carrierGenre)&&(identical(other.carrierBirthday, carrierBirthday) || other.carrierBirthday == carrierBirthday)&&(identical(other.carrierWeight, carrierWeight) || other.carrierWeight == carrierWeight)&&(identical(other.carrierStepLength, carrierStepLength) || other.carrierStepLength == carrierStepLength)&&(identical(other.carrierName, carrierName) || other.carrierName == carrierName)&&(identical(other.comment, comment) || other.comment == comment)&&(identical(other.phone, phone) || other.phone == phone)&&(identical(other.simId, simId) || other.simId == simId)&&const DeepCollectionEquality().equals(other._paymentOptions, _paymentOptions)&&(identical(other.settings, settings) || other.settings == settings)&&(identical(other.connectionServer, connectionServer) || other.connectionServer == connectionServer)&&(identical(other.protocol, protocol) || other.protocol == protocol)&&(identical(other.type, type) || other.type == type)&&(identical(other.imei, imei) || other.imei == imei)&&(identical(other.queueCommands, queueCommands) || other.queueCommands == queueCommands)&&(identical(other.capabilities, capabilities) || other.capabilities == capabilities)&&(identical(other.backgroundImageId, backgroundImageId) || other.backgroundImageId == backgroundImageId)&&(identical(other.createdAt, createdAt) || other.createdAt == createdAt)&&(identical(other.updatedAt, updatedAt) || other.updatedAt == updatedAt));
|
||||
}
|
||||
|
||||
|
||||
@override
|
||||
int get hashCode => Object.hashAll([runtimeType,id,identificator,battery,userId,companyId,delegationId,groupId,const DeepCollectionEquality().hash(_flags),const DeepCollectionEquality().hash(_tags),lastConnection,carrierGenre,carrierBirthday,carrierWeight,carrierStepLength,carrierName,comment,phone,simId,const DeepCollectionEquality().hash(_paymentOptions),settings,connectionServer,protocol,type,queueCommands,capabilities,backgroundImageId,createdAt,updatedAt]);
|
||||
int get hashCode => Object.hashAll([runtimeType,id,identificator,battery,userId,companyId,delegationId,groupId,const DeepCollectionEquality().hash(_flags),const DeepCollectionEquality().hash(_tags),lastConnection,carrierGenre,carrierBirthday,carrierWeight,carrierStepLength,carrierName,comment,phone,simId,const DeepCollectionEquality().hash(_paymentOptions),settings,connectionServer,protocol,type,imei,queueCommands,capabilities,backgroundImageId,createdAt,updatedAt]);
|
||||
|
||||
@override
|
||||
String toString() {
|
||||
return 'DeviceEntity(id: $id, identificator: $identificator, battery: $battery, userId: $userId, companyId: $companyId, delegationId: $delegationId, groupId: $groupId, flags: $flags, tags: $tags, lastConnection: $lastConnection, carrierGenre: $carrierGenre, carrierBirthday: $carrierBirthday, carrierWeight: $carrierWeight, carrierStepLength: $carrierStepLength, carrierName: $carrierName, comment: $comment, phone: $phone, simId: $simId, paymentOptions: $paymentOptions, settings: $settings, connectionServer: $connectionServer, protocol: $protocol, type: $type, queueCommands: $queueCommands, capabilities: $capabilities, backgroundImageId: $backgroundImageId, createdAt: $createdAt, updatedAt: $updatedAt)';
|
||||
return 'DeviceEntity(id: $id, identificator: $identificator, battery: $battery, userId: $userId, companyId: $companyId, delegationId: $delegationId, groupId: $groupId, flags: $flags, tags: $tags, lastConnection: $lastConnection, carrierGenre: $carrierGenre, carrierBirthday: $carrierBirthday, carrierWeight: $carrierWeight, carrierStepLength: $carrierStepLength, carrierName: $carrierName, comment: $comment, phone: $phone, simId: $simId, paymentOptions: $paymentOptions, settings: $settings, connectionServer: $connectionServer, protocol: $protocol, type: $type, imei: $imei, queueCommands: $queueCommands, capabilities: $capabilities, backgroundImageId: $backgroundImageId, createdAt: $createdAt, updatedAt: $updatedAt)';
|
||||
}
|
||||
|
||||
|
||||
@@ -338,7 +340,7 @@ abstract mixin class _$DeviceEntityCopyWith<$Res> implements $DeviceEntityCopyWi
|
||||
factory _$DeviceEntityCopyWith(_DeviceEntity value, $Res Function(_DeviceEntity) _then) = __$DeviceEntityCopyWithImpl;
|
||||
@override @useResult
|
||||
$Res call({
|
||||
String id, String identificator, int? battery, String? userId, String? companyId, String? delegationId, String? groupId, Map<String, dynamic> flags, List<String>? tags, String? lastConnection, String? carrierGenre, String? carrierBirthday, int? carrierWeight, int? carrierStepLength, String? carrierName, String? comment, String? phone, String? simId, Map<String, dynamic>? paymentOptions, DeviceSettingsEntity settings, String connectionServer, String protocol, String type, bool queueCommands, DeviceCapabilitiesEntity? capabilities, String? backgroundImageId, String createdAt, String? updatedAt
|
||||
String id, String identificator, int? battery, String? userId, String? companyId, String? delegationId, String? groupId, Map<String, dynamic> flags, List<String>? tags, String? lastConnection, String? carrierGenre, String? carrierBirthday, int? carrierWeight, int? carrierStepLength, String? carrierName, String? comment, String? phone, String? simId, Map<String, dynamic>? paymentOptions, DeviceSettingsEntity settings, String connectionServer, String protocol, String type, String? imei, bool queueCommands, DeviceCapabilitiesEntity? capabilities, String? backgroundImageId, String createdAt, String? updatedAt
|
||||
});
|
||||
|
||||
|
||||
@@ -355,7 +357,7 @@ class __$DeviceEntityCopyWithImpl<$Res>
|
||||
|
||||
/// Create a copy of DeviceEntity
|
||||
/// with the given fields replaced by the non-null parameter values.
|
||||
@override @pragma('vm:prefer-inline') $Res call({Object? id = null,Object? identificator = null,Object? battery = freezed,Object? userId = freezed,Object? companyId = freezed,Object? delegationId = freezed,Object? groupId = freezed,Object? flags = null,Object? tags = freezed,Object? lastConnection = freezed,Object? carrierGenre = freezed,Object? carrierBirthday = freezed,Object? carrierWeight = freezed,Object? carrierStepLength = freezed,Object? carrierName = freezed,Object? comment = freezed,Object? phone = freezed,Object? simId = freezed,Object? paymentOptions = freezed,Object? settings = null,Object? connectionServer = null,Object? protocol = null,Object? type = null,Object? queueCommands = null,Object? capabilities = freezed,Object? backgroundImageId = freezed,Object? createdAt = null,Object? updatedAt = freezed,}) {
|
||||
@override @pragma('vm:prefer-inline') $Res call({Object? id = null,Object? identificator = null,Object? battery = freezed,Object? userId = freezed,Object? companyId = freezed,Object? delegationId = freezed,Object? groupId = freezed,Object? flags = null,Object? tags = freezed,Object? lastConnection = freezed,Object? carrierGenre = freezed,Object? carrierBirthday = freezed,Object? carrierWeight = freezed,Object? carrierStepLength = freezed,Object? carrierName = freezed,Object? comment = freezed,Object? phone = freezed,Object? simId = freezed,Object? paymentOptions = freezed,Object? settings = null,Object? connectionServer = null,Object? protocol = null,Object? type = null,Object? imei = freezed,Object? queueCommands = null,Object? capabilities = freezed,Object? backgroundImageId = freezed,Object? createdAt = null,Object? updatedAt = freezed,}) {
|
||||
return _then(_DeviceEntity(
|
||||
id: null == id ? _self.id : id // ignore: cast_nullable_to_non_nullable
|
||||
as String,identificator: null == identificator ? _self.identificator : identificator // ignore: cast_nullable_to_non_nullable
|
||||
@@ -380,7 +382,8 @@ as Map<String, dynamic>?,settings: null == settings ? _self.settings : settings
|
||||
as DeviceSettingsEntity,connectionServer: null == connectionServer ? _self.connectionServer : connectionServer // ignore: cast_nullable_to_non_nullable
|
||||
as String,protocol: null == protocol ? _self.protocol : protocol // ignore: cast_nullable_to_non_nullable
|
||||
as String,type: null == type ? _self.type : type // ignore: cast_nullable_to_non_nullable
|
||||
as String,queueCommands: null == queueCommands ? _self.queueCommands : queueCommands // ignore: cast_nullable_to_non_nullable
|
||||
as String,imei: freezed == imei ? _self.imei : imei // ignore: cast_nullable_to_non_nullable
|
||||
as String?,queueCommands: null == queueCommands ? _self.queueCommands : queueCommands // ignore: cast_nullable_to_non_nullable
|
||||
as bool,capabilities: freezed == capabilities ? _self.capabilities : capabilities // ignore: cast_nullable_to_non_nullable
|
||||
as DeviceCapabilitiesEntity?,backgroundImageId: freezed == backgroundImageId ? _self.backgroundImageId : backgroundImageId // ignore: cast_nullable_to_non_nullable
|
||||
as String?,createdAt: null == createdAt ? _self.createdAt : createdAt // ignore: cast_nullable_to_non_nullable
|
||||
|
||||
Reference in New Issue
Block a user