diff --git a/lib/app.dart b/lib/app.dart index 5eac7f6741..1fc9ba78bd 100644 --- a/lib/app.dart +++ b/lib/app.dart @@ -53,31 +53,31 @@ class App extends StatelessWidget { headerBackgroundColor: PilllColors.primary, ), switchTheme: SwitchThemeData( - thumbColor: MaterialStateProperty.resolveWith((Set states) { - if (states.contains(MaterialState.disabled)) { + thumbColor: WidgetStateProperty.resolveWith((Set states) { + if (states.contains(WidgetState.disabled)) { return null; } - if (states.contains(MaterialState.selected)) { + if (states.contains(WidgetState.selected)) { return PilllColors.secondary; } return null; }), - trackColor: MaterialStateProperty.resolveWith((Set states) { - if (states.contains(MaterialState.disabled)) { + trackColor: WidgetStateProperty.resolveWith((Set states) { + if (states.contains(WidgetState.disabled)) { return null; } - if (states.contains(MaterialState.selected)) { + if (states.contains(WidgetState.selected)) { return PilllColors.secondary; } return null; }), ), radioTheme: RadioThemeData( - fillColor: MaterialStateProperty.resolveWith((Set states) { - if (states.contains(MaterialState.disabled)) { + fillColor: WidgetStateProperty.resolveWith((Set states) { + if (states.contains(WidgetState.disabled)) { return null; } - if (states.contains(MaterialState.selected)) { + if (states.contains(WidgetState.selected)) { return PilllColors.secondary; } @@ -85,11 +85,11 @@ class App extends StatelessWidget { }), ), checkboxTheme: CheckboxThemeData( - fillColor: MaterialStateProperty.resolveWith((Set states) { - if (states.contains(MaterialState.disabled)) { + fillColor: WidgetStateProperty.resolveWith((Set states) { + if (states.contains(WidgetState.disabled)) { return null; } - if (states.contains(MaterialState.selected)) { + if (states.contains(WidgetState.selected)) { return PilllColors.secondary; } return null; diff --git a/lib/components/atoms/button.dart b/lib/components/atoms/button.dart index 28bd454750..1cacddafcd 100644 --- a/lib/components/atoms/button.dart +++ b/lib/components/atoms/button.dart @@ -22,8 +22,8 @@ class PrimaryButton extends HookWidget { alignment: Alignment.center, children: [ ElevatedButton( - style: ButtonStyle(backgroundColor: MaterialStateProperty.resolveWith((statuses) { - if (statuses.contains(MaterialState.disabled)) { + style: ButtonStyle(backgroundColor: WidgetStateProperty.resolveWith((statuses) { + if (statuses.contains(WidgetState.disabled)) { return PilllColors.lightGray; } return PilllColors.primary; @@ -80,8 +80,8 @@ class UndoButton extends HookWidget { alignment: Alignment.center, children: [ ElevatedButton( - style: ButtonStyle(backgroundColor: MaterialStateProperty.resolveWith((statuses) { - if (statuses.contains(MaterialState.disabled)) { + style: ButtonStyle(backgroundColor: WidgetStateProperty.resolveWith((statuses) { + if (statuses.contains(WidgetState.disabled)) { return PilllColors.lightGray; } return PilllColors.gray; diff --git a/lib/components/molecules/diagonal_striped_line.dart b/lib/components/molecules/diagonal_striped_line.dart index d37aebbd44..d099c3510c 100644 --- a/lib/components/molecules/diagonal_striped_line.dart +++ b/lib/components/molecules/diagonal_striped_line.dart @@ -8,8 +8,7 @@ class DiagonalStripedLine extends CustomPainter { DiagonalStripedLine({required this.color, required this.isNecessaryBorder}); @override void paint(Canvas canvas, Size size) { - canvas.drawRect( - Rect.fromLTWH(0, 0, size.width, size.height), Paint()..color = color); + canvas.drawRect(Rect.fromLTWH(0, 0, size.width, size.height), Paint()..color = color); if (!isNecessaryBorder) { return; } diff --git a/lib/components/molecules/select_circle.dart b/lib/components/molecules/select_circle.dart index 730f8d9e76..febc57e28d 100644 --- a/lib/components/molecules/select_circle.dart +++ b/lib/components/molecules/select_circle.dart @@ -10,17 +10,8 @@ class SelectCircle extends StatelessWidget { Widget build(BuildContext context) { return Stack( children: [ - SizedBox( - width: 20, - height: 20, - child: SvgPicture.asset("images/circle.line.svg")), - if (isSelected) - Positioned( - top: 5, - left: 5, - width: 10, - height: 10, - child: SvgPicture.asset("images/circle.fill.svg")), + SizedBox(width: 20, height: 20, child: SvgPicture.asset("images/circle.line.svg")), + if (isSelected) Positioned(top: 5, left: 5, width: 10, height: 10, child: SvgPicture.asset("images/circle.fill.svg")), ], ); } diff --git a/lib/components/organisms/calendar/band/calendar_band_model.dart b/lib/components/organisms/calendar/band/calendar_band_model.dart index c91a91c684..a91057f8a0 100644 --- a/lib/components/organisms/calendar/band/calendar_band_model.dart +++ b/lib/components/organisms/calendar/band/calendar_band_model.dart @@ -12,8 +12,7 @@ class CalendarScheduledMenstruationBandModel extends CalendarBandModel { class CalendarMenstruationBandModel extends CalendarBandModel { final Menstruation menstruation; - CalendarMenstruationBandModel(this.menstruation) - : super(menstruation.beginDate, menstruation.endDate); + CalendarMenstruationBandModel(this.menstruation) : super(menstruation.beginDate, menstruation.endDate); } class CalendarNextPillSheetBandModel extends CalendarBandModel { diff --git a/lib/components/template/setting_pill_sheet_group/setting_pill_sheet_group_pill_sheet_type_select_row.dart b/lib/components/template/setting_pill_sheet_group/setting_pill_sheet_group_pill_sheet_type_select_row.dart index bff73aa9c2..5ad979b2f7 100644 --- a/lib/components/template/setting_pill_sheet_group/setting_pill_sheet_group_pill_sheet_type_select_row.dart +++ b/lib/components/template/setting_pill_sheet_group/setting_pill_sheet_group_pill_sheet_type_select_row.dart @@ -67,8 +67,7 @@ class SettingPillSheetGroupPillSheetTypeSelectRow extends StatelessWidget { }, child: Container( padding: const EdgeInsets.symmetric(vertical: 16, horizontal: 16), - constraints: BoxConstraints( - minWidth: MediaQuery.of(context).size.width - 80), + constraints: BoxConstraints(minWidth: MediaQuery.of(context).size.width - 80), decoration: BoxDecoration( color: PilllColors.white, borderRadius: BorderRadius.circular(4), diff --git a/lib/entity/config.codegen.freezed.dart b/lib/entity/config.codegen.freezed.dart index 3c4129f505..a627580777 100644 --- a/lib/entity/config.codegen.freezed.dart +++ b/lib/entity/config.codegen.freezed.dart @@ -29,15 +29,13 @@ mixin _$Config { /// @nodoc abstract class $ConfigCopyWith<$Res> { - factory $ConfigCopyWith(Config value, $Res Function(Config) then) = - _$ConfigCopyWithImpl<$Res, Config>; + factory $ConfigCopyWith(Config value, $Res Function(Config) then) = _$ConfigCopyWithImpl<$Res, Config>; @useResult $Res call({String minimumSupportedAppVersion}); } /// @nodoc -class _$ConfigCopyWithImpl<$Res, $Val extends Config> - implements $ConfigCopyWith<$Res> { +class _$ConfigCopyWithImpl<$Res, $Val extends Config> implements $ConfigCopyWith<$Res> { _$ConfigCopyWithImpl(this._value, this._then); // ignore: unused_field @@ -61,21 +59,15 @@ class _$ConfigCopyWithImpl<$Res, $Val extends Config> /// @nodoc abstract class _$$ConfigImplCopyWith<$Res> implements $ConfigCopyWith<$Res> { - factory _$$ConfigImplCopyWith( - _$ConfigImpl value, $Res Function(_$ConfigImpl) then) = - __$$ConfigImplCopyWithImpl<$Res>; + factory _$$ConfigImplCopyWith(_$ConfigImpl value, $Res Function(_$ConfigImpl) then) = __$$ConfigImplCopyWithImpl<$Res>; @override @useResult $Res call({String minimumSupportedAppVersion}); } /// @nodoc -class __$$ConfigImplCopyWithImpl<$Res> - extends _$ConfigCopyWithImpl<$Res, _$ConfigImpl> - implements _$$ConfigImplCopyWith<$Res> { - __$$ConfigImplCopyWithImpl( - _$ConfigImpl _value, $Res Function(_$ConfigImpl) _then) - : super(_value, _then); +class __$$ConfigImplCopyWithImpl<$Res> extends _$ConfigCopyWithImpl<$Res, _$ConfigImpl> implements _$$ConfigImplCopyWith<$Res> { + __$$ConfigImplCopyWithImpl(_$ConfigImpl _value, $Res Function(_$ConfigImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @override @@ -96,8 +88,7 @@ class __$$ConfigImplCopyWithImpl<$Res> class _$ConfigImpl extends _Config { _$ConfigImpl({required this.minimumSupportedAppVersion}) : super._(); - factory _$ConfigImpl.fromJson(Map json) => - _$$ConfigImplFromJson(json); + factory _$ConfigImpl.fromJson(Map json) => _$$ConfigImplFromJson(json); @override final String minimumSupportedAppVersion; @@ -112,10 +103,8 @@ class _$ConfigImpl extends _Config { return identical(this, other) || (other.runtimeType == runtimeType && other is _$ConfigImpl && - (identical(other.minimumSupportedAppVersion, - minimumSupportedAppVersion) || - other.minimumSupportedAppVersion == - minimumSupportedAppVersion)); + (identical(other.minimumSupportedAppVersion, minimumSupportedAppVersion) || + other.minimumSupportedAppVersion == minimumSupportedAppVersion)); } @JsonKey(ignore: true) @@ -125,8 +114,7 @@ class _$ConfigImpl extends _Config { @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$ConfigImplCopyWith<_$ConfigImpl> get copyWith => - __$$ConfigImplCopyWithImpl<_$ConfigImpl>(this, _$identity); + _$$ConfigImplCopyWith<_$ConfigImpl> get copyWith => __$$ConfigImplCopyWithImpl<_$ConfigImpl>(this, _$identity); @override Map toJson() { @@ -137,8 +125,7 @@ class _$ConfigImpl extends _Config { } abstract class _Config extends Config { - factory _Config({required final String minimumSupportedAppVersion}) = - _$ConfigImpl; + factory _Config({required final String minimumSupportedAppVersion}) = _$ConfigImpl; _Config._() : super._(); factory _Config.fromJson(Map json) = _$ConfigImpl.fromJson; @@ -147,6 +134,5 @@ abstract class _Config extends Config { String get minimumSupportedAppVersion; @override @JsonKey(ignore: true) - _$$ConfigImplCopyWith<_$ConfigImpl> get copyWith => - throw _privateConstructorUsedError; + _$$ConfigImplCopyWith<_$ConfigImpl> get copyWith => throw _privateConstructorUsedError; } diff --git a/lib/entity/config.codegen.g.dart b/lib/entity/config.codegen.g.dart index 1d0c12ecb0..2220f20620 100644 --- a/lib/entity/config.codegen.g.dart +++ b/lib/entity/config.codegen.g.dart @@ -10,7 +10,6 @@ _$ConfigImpl _$$ConfigImplFromJson(Map json) => _$ConfigImpl( minimumSupportedAppVersion: json['minimumSupportedAppVersion'] as String, ); -Map _$$ConfigImplToJson(_$ConfigImpl instance) => - { +Map _$$ConfigImplToJson(_$ConfigImpl instance) => { 'minimumSupportedAppVersion': instance.minimumSupportedAppVersion, }; diff --git a/lib/entity/diary.codegen.dart b/lib/entity/diary.codegen.dart index 09c53c8ddc..70f628eea5 100644 --- a/lib/entity/diary.codegen.dart +++ b/lib/entity/diary.codegen.dart @@ -23,13 +23,13 @@ class Diary with _$Diary { fromJson: NonNullTimestampConverter.timestampToDateTime, toJson: NonNullTimestampConverter.dateTimeToTimestamp, ) - required DateTime date, + required DateTime date, // NOTE: OLD data does't have createdAt @JsonKey( fromJson: TimestampConverter.timestampToDateTime, toJson: TimestampConverter.dateTimeToTimestamp, ) - required DateTime? createdAt, + required DateTime? createdAt, PhysicalConditionStatus? physicalConditionStatus, required List physicalConditions, required bool hasSex, diff --git a/lib/entity/diary.codegen.freezed.dart b/lib/entity/diary.codegen.freezed.dart index 12b413b273..1997beeadd 100644 --- a/lib/entity/diary.codegen.freezed.dart +++ b/lib/entity/diary.codegen.freezed.dart @@ -20,17 +20,11 @@ Diary _$DiaryFromJson(Map json) { /// @nodoc mixin _$Diary { - @JsonKey( - fromJson: NonNullTimestampConverter.timestampToDateTime, - toJson: NonNullTimestampConverter.dateTimeToTimestamp) - DateTime get date => - throw _privateConstructorUsedError; // NOTE: OLD data does't have createdAt - @JsonKey( - fromJson: TimestampConverter.timestampToDateTime, - toJson: TimestampConverter.dateTimeToTimestamp) + @JsonKey(fromJson: NonNullTimestampConverter.timestampToDateTime, toJson: NonNullTimestampConverter.dateTimeToTimestamp) + DateTime get date => throw _privateConstructorUsedError; // NOTE: OLD data does't have createdAt + @JsonKey(fromJson: TimestampConverter.timestampToDateTime, toJson: TimestampConverter.dateTimeToTimestamp) DateTime? get createdAt => throw _privateConstructorUsedError; - PhysicalConditionStatus? get physicalConditionStatus => - throw _privateConstructorUsedError; + PhysicalConditionStatus? get physicalConditionStatus => throw _privateConstructorUsedError; List get physicalConditions => throw _privateConstructorUsedError; bool get hasSex => throw _privateConstructorUsedError; String get memo => throw _privateConstructorUsedError; @@ -42,18 +36,11 @@ mixin _$Diary { /// @nodoc abstract class $DiaryCopyWith<$Res> { - factory $DiaryCopyWith(Diary value, $Res Function(Diary) then) = - _$DiaryCopyWithImpl<$Res, Diary>; + factory $DiaryCopyWith(Diary value, $Res Function(Diary) then) = _$DiaryCopyWithImpl<$Res, Diary>; @useResult $Res call( - {@JsonKey( - fromJson: NonNullTimestampConverter.timestampToDateTime, - toJson: NonNullTimestampConverter.dateTimeToTimestamp) - DateTime date, - @JsonKey( - fromJson: TimestampConverter.timestampToDateTime, - toJson: TimestampConverter.dateTimeToTimestamp) - DateTime? createdAt, + {@JsonKey(fromJson: NonNullTimestampConverter.timestampToDateTime, toJson: NonNullTimestampConverter.dateTimeToTimestamp) DateTime date, + @JsonKey(fromJson: TimestampConverter.timestampToDateTime, toJson: TimestampConverter.dateTimeToTimestamp) DateTime? createdAt, PhysicalConditionStatus? physicalConditionStatus, List physicalConditions, bool hasSex, @@ -61,8 +48,7 @@ abstract class $DiaryCopyWith<$Res> { } /// @nodoc -class _$DiaryCopyWithImpl<$Res, $Val extends Diary> - implements $DiaryCopyWith<$Res> { +class _$DiaryCopyWithImpl<$Res, $Val extends Diary> implements $DiaryCopyWith<$Res> { _$DiaryCopyWithImpl(this._value, this._then); // ignore: unused_field @@ -111,20 +97,12 @@ class _$DiaryCopyWithImpl<$Res, $Val extends Diary> /// @nodoc abstract class _$$DiaryImplCopyWith<$Res> implements $DiaryCopyWith<$Res> { - factory _$$DiaryImplCopyWith( - _$DiaryImpl value, $Res Function(_$DiaryImpl) then) = - __$$DiaryImplCopyWithImpl<$Res>; + factory _$$DiaryImplCopyWith(_$DiaryImpl value, $Res Function(_$DiaryImpl) then) = __$$DiaryImplCopyWithImpl<$Res>; @override @useResult $Res call( - {@JsonKey( - fromJson: NonNullTimestampConverter.timestampToDateTime, - toJson: NonNullTimestampConverter.dateTimeToTimestamp) - DateTime date, - @JsonKey( - fromJson: TimestampConverter.timestampToDateTime, - toJson: TimestampConverter.dateTimeToTimestamp) - DateTime? createdAt, + {@JsonKey(fromJson: NonNullTimestampConverter.timestampToDateTime, toJson: NonNullTimestampConverter.dateTimeToTimestamp) DateTime date, + @JsonKey(fromJson: TimestampConverter.timestampToDateTime, toJson: TimestampConverter.dateTimeToTimestamp) DateTime? createdAt, PhysicalConditionStatus? physicalConditionStatus, List physicalConditions, bool hasSex, @@ -132,12 +110,8 @@ abstract class _$$DiaryImplCopyWith<$Res> implements $DiaryCopyWith<$Res> { } /// @nodoc -class __$$DiaryImplCopyWithImpl<$Res> - extends _$DiaryCopyWithImpl<$Res, _$DiaryImpl> - implements _$$DiaryImplCopyWith<$Res> { - __$$DiaryImplCopyWithImpl( - _$DiaryImpl _value, $Res Function(_$DiaryImpl) _then) - : super(_value, _then); +class __$$DiaryImplCopyWithImpl<$Res> extends _$DiaryCopyWithImpl<$Res, _$DiaryImpl> implements _$$DiaryImplCopyWith<$Res> { + __$$DiaryImplCopyWithImpl(_$DiaryImpl _value, $Res Function(_$DiaryImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @override @@ -183,14 +157,8 @@ class __$$DiaryImplCopyWithImpl<$Res> @JsonSerializable(explicitToJson: true) class _$DiaryImpl extends _Diary { const _$DiaryImpl( - {@JsonKey( - fromJson: NonNullTimestampConverter.timestampToDateTime, - toJson: NonNullTimestampConverter.dateTimeToTimestamp) - required this.date, - @JsonKey( - fromJson: TimestampConverter.timestampToDateTime, - toJson: TimestampConverter.dateTimeToTimestamp) - required this.createdAt, + {@JsonKey(fromJson: NonNullTimestampConverter.timestampToDateTime, toJson: NonNullTimestampConverter.dateTimeToTimestamp) required this.date, + @JsonKey(fromJson: TimestampConverter.timestampToDateTime, toJson: TimestampConverter.dateTimeToTimestamp) required this.createdAt, this.physicalConditionStatus, required final List physicalConditions, required this.hasSex, @@ -198,27 +166,21 @@ class _$DiaryImpl extends _Diary { : _physicalConditions = physicalConditions, super._(); - factory _$DiaryImpl.fromJson(Map json) => - _$$DiaryImplFromJson(json); + factory _$DiaryImpl.fromJson(Map json) => _$$DiaryImplFromJson(json); @override - @JsonKey( - fromJson: NonNullTimestampConverter.timestampToDateTime, - toJson: NonNullTimestampConverter.dateTimeToTimestamp) + @JsonKey(fromJson: NonNullTimestampConverter.timestampToDateTime, toJson: NonNullTimestampConverter.dateTimeToTimestamp) final DateTime date; // NOTE: OLD data does't have createdAt @override - @JsonKey( - fromJson: TimestampConverter.timestampToDateTime, - toJson: TimestampConverter.dateTimeToTimestamp) + @JsonKey(fromJson: TimestampConverter.timestampToDateTime, toJson: TimestampConverter.dateTimeToTimestamp) final DateTime? createdAt; @override final PhysicalConditionStatus? physicalConditionStatus; final List _physicalConditions; @override List get physicalConditions { - if (_physicalConditions is EqualUnmodifiableListView) - return _physicalConditions; + if (_physicalConditions is EqualUnmodifiableListView) return _physicalConditions; // ignore: implicit_dynamic_type return EqualUnmodifiableListView(_physicalConditions); } @@ -239,33 +201,22 @@ class _$DiaryImpl extends _Diary { (other.runtimeType == runtimeType && other is _$DiaryImpl && (identical(other.date, date) || other.date == date) && - (identical(other.createdAt, createdAt) || - other.createdAt == createdAt) && - (identical( - other.physicalConditionStatus, physicalConditionStatus) || - other.physicalConditionStatus == physicalConditionStatus) && - const DeepCollectionEquality() - .equals(other._physicalConditions, _physicalConditions) && + (identical(other.createdAt, createdAt) || other.createdAt == createdAt) && + (identical(other.physicalConditionStatus, physicalConditionStatus) || other.physicalConditionStatus == physicalConditionStatus) && + const DeepCollectionEquality().equals(other._physicalConditions, _physicalConditions) && (identical(other.hasSex, hasSex) || other.hasSex == hasSex) && (identical(other.memo, memo) || other.memo == memo)); } @JsonKey(ignore: true) @override - int get hashCode => Object.hash( - runtimeType, - date, - createdAt, - physicalConditionStatus, - const DeepCollectionEquality().hash(_physicalConditions), - hasSex, - memo); + int get hashCode => + Object.hash(runtimeType, date, createdAt, physicalConditionStatus, const DeepCollectionEquality().hash(_physicalConditions), hasSex, memo); @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$DiaryImplCopyWith<_$DiaryImpl> get copyWith => - __$$DiaryImplCopyWithImpl<_$DiaryImpl>(this, _$identity); + _$$DiaryImplCopyWith<_$DiaryImpl> get copyWith => __$$DiaryImplCopyWithImpl<_$DiaryImpl>(this, _$identity); @override Map toJson() { @@ -277,14 +228,9 @@ class _$DiaryImpl extends _Diary { abstract class _Diary extends Diary { const factory _Diary( - {@JsonKey( - fromJson: NonNullTimestampConverter.timestampToDateTime, - toJson: NonNullTimestampConverter.dateTimeToTimestamp) + {@JsonKey(fromJson: NonNullTimestampConverter.timestampToDateTime, toJson: NonNullTimestampConverter.dateTimeToTimestamp) required final DateTime date, - @JsonKey( - fromJson: TimestampConverter.timestampToDateTime, - toJson: TimestampConverter.dateTimeToTimestamp) - required final DateTime? createdAt, + @JsonKey(fromJson: TimestampConverter.timestampToDateTime, toJson: TimestampConverter.dateTimeToTimestamp) required final DateTime? createdAt, final PhysicalConditionStatus? physicalConditionStatus, required final List physicalConditions, required final bool hasSex, @@ -294,14 +240,10 @@ abstract class _Diary extends Diary { factory _Diary.fromJson(Map json) = _$DiaryImpl.fromJson; @override - @JsonKey( - fromJson: NonNullTimestampConverter.timestampToDateTime, - toJson: NonNullTimestampConverter.dateTimeToTimestamp) + @JsonKey(fromJson: NonNullTimestampConverter.timestampToDateTime, toJson: NonNullTimestampConverter.dateTimeToTimestamp) DateTime get date; @override // NOTE: OLD data does't have createdAt - @JsonKey( - fromJson: TimestampConverter.timestampToDateTime, - toJson: TimestampConverter.dateTimeToTimestamp) + @JsonKey(fromJson: TimestampConverter.timestampToDateTime, toJson: TimestampConverter.dateTimeToTimestamp) DateTime? get createdAt; @override PhysicalConditionStatus? get physicalConditionStatus; @@ -313,6 +255,5 @@ abstract class _Diary extends Diary { String get memo; @override @JsonKey(ignore: true) - _$$DiaryImplCopyWith<_$DiaryImpl> get copyWith => - throw _privateConstructorUsedError; + _$$DiaryImplCopyWith<_$DiaryImpl> get copyWith => throw _privateConstructorUsedError; } diff --git a/lib/entity/diary.codegen.g.dart b/lib/entity/diary.codegen.g.dart index 25f445f710..94b19c751c 100644 --- a/lib/entity/diary.codegen.g.dart +++ b/lib/entity/diary.codegen.g.dart @@ -7,25 +7,18 @@ part of 'diary.codegen.dart'; // ************************************************************************** _$DiaryImpl _$$DiaryImplFromJson(Map json) => _$DiaryImpl( - date: NonNullTimestampConverter.timestampToDateTime( - json['date'] as Timestamp), - createdAt: TimestampConverter.timestampToDateTime( - json['createdAt'] as Timestamp?), - physicalConditionStatus: $enumDecodeNullable( - _$PhysicalConditionStatusEnumMap, json['physicalConditionStatus']), - physicalConditions: (json['physicalConditions'] as List) - .map((e) => e as String) - .toList(), + date: NonNullTimestampConverter.timestampToDateTime(json['date'] as Timestamp), + createdAt: TimestampConverter.timestampToDateTime(json['createdAt'] as Timestamp?), + physicalConditionStatus: $enumDecodeNullable(_$PhysicalConditionStatusEnumMap, json['physicalConditionStatus']), + physicalConditions: (json['physicalConditions'] as List).map((e) => e as String).toList(), hasSex: json['hasSex'] as bool, memo: json['memo'] as String, ); -Map _$$DiaryImplToJson(_$DiaryImpl instance) => - { +Map _$$DiaryImplToJson(_$DiaryImpl instance) => { 'date': NonNullTimestampConverter.dateTimeToTimestamp(instance.date), 'createdAt': TimestampConverter.dateTimeToTimestamp(instance.createdAt), - 'physicalConditionStatus': - _$PhysicalConditionStatusEnumMap[instance.physicalConditionStatus], + 'physicalConditionStatus': _$PhysicalConditionStatusEnumMap[instance.physicalConditionStatus], 'physicalConditions': instance.physicalConditions, 'hasSex': instance.hasSex, 'memo': instance.memo, diff --git a/lib/entity/diary_setting.codegen.dart b/lib/entity/diary_setting.codegen.dart index 352aadad40..8f7c597c41 100644 --- a/lib/entity/diary_setting.codegen.dart +++ b/lib/entity/diary_setting.codegen.dart @@ -28,13 +28,12 @@ class DiarySetting with _$DiarySetting { const DiarySetting._(); @JsonSerializable(explicitToJson: true) const factory DiarySetting({ - @Default(defaultPhysicalConditions) - List physicalConditions, + @Default(defaultPhysicalConditions) List physicalConditions, @JsonKey( fromJson: NonNullTimestampConverter.timestampToDateTime, toJson: NonNullTimestampConverter.dateTimeToTimestamp, ) - required DateTime createdAt, + required DateTime createdAt, }) = _DiarySetting; factory DiarySetting.fromJson(Map json) => _$DiarySettingFromJson(json); diff --git a/lib/entity/diary_setting.codegen.freezed.dart b/lib/entity/diary_setting.codegen.freezed.dart index 966a1c2403..5032d027dd 100644 --- a/lib/entity/diary_setting.codegen.freezed.dart +++ b/lib/entity/diary_setting.codegen.freezed.dart @@ -21,34 +21,25 @@ DiarySetting _$DiarySettingFromJson(Map json) { /// @nodoc mixin _$DiarySetting { List get physicalConditions => throw _privateConstructorUsedError; - @JsonKey( - fromJson: NonNullTimestampConverter.timestampToDateTime, - toJson: NonNullTimestampConverter.dateTimeToTimestamp) + @JsonKey(fromJson: NonNullTimestampConverter.timestampToDateTime, toJson: NonNullTimestampConverter.dateTimeToTimestamp) DateTime get createdAt => throw _privateConstructorUsedError; Map toJson() => throw _privateConstructorUsedError; @JsonKey(ignore: true) - $DiarySettingCopyWith get copyWith => - throw _privateConstructorUsedError; + $DiarySettingCopyWith get copyWith => throw _privateConstructorUsedError; } /// @nodoc abstract class $DiarySettingCopyWith<$Res> { - factory $DiarySettingCopyWith( - DiarySetting value, $Res Function(DiarySetting) then) = - _$DiarySettingCopyWithImpl<$Res, DiarySetting>; + factory $DiarySettingCopyWith(DiarySetting value, $Res Function(DiarySetting) then) = _$DiarySettingCopyWithImpl<$Res, DiarySetting>; @useResult $Res call( {List physicalConditions, - @JsonKey( - fromJson: NonNullTimestampConverter.timestampToDateTime, - toJson: NonNullTimestampConverter.dateTimeToTimestamp) - DateTime createdAt}); + @JsonKey(fromJson: NonNullTimestampConverter.timestampToDateTime, toJson: NonNullTimestampConverter.dateTimeToTimestamp) DateTime createdAt}); } /// @nodoc -class _$DiarySettingCopyWithImpl<$Res, $Val extends DiarySetting> - implements $DiarySettingCopyWith<$Res> { +class _$DiarySettingCopyWithImpl<$Res, $Val extends DiarySetting> implements $DiarySettingCopyWith<$Res> { _$DiarySettingCopyWithImpl(this._value, this._then); // ignore: unused_field @@ -76,28 +67,19 @@ class _$DiarySettingCopyWithImpl<$Res, $Val extends DiarySetting> } /// @nodoc -abstract class _$$DiarySettingImplCopyWith<$Res> - implements $DiarySettingCopyWith<$Res> { - factory _$$DiarySettingImplCopyWith( - _$DiarySettingImpl value, $Res Function(_$DiarySettingImpl) then) = - __$$DiarySettingImplCopyWithImpl<$Res>; +abstract class _$$DiarySettingImplCopyWith<$Res> implements $DiarySettingCopyWith<$Res> { + factory _$$DiarySettingImplCopyWith(_$DiarySettingImpl value, $Res Function(_$DiarySettingImpl) then) = __$$DiarySettingImplCopyWithImpl<$Res>; @override @useResult $Res call( {List physicalConditions, - @JsonKey( - fromJson: NonNullTimestampConverter.timestampToDateTime, - toJson: NonNullTimestampConverter.dateTimeToTimestamp) - DateTime createdAt}); + @JsonKey(fromJson: NonNullTimestampConverter.timestampToDateTime, toJson: NonNullTimestampConverter.dateTimeToTimestamp) DateTime createdAt}); } /// @nodoc -class __$$DiarySettingImplCopyWithImpl<$Res> - extends _$DiarySettingCopyWithImpl<$Res, _$DiarySettingImpl> +class __$$DiarySettingImplCopyWithImpl<$Res> extends _$DiarySettingCopyWithImpl<$Res, _$DiarySettingImpl> implements _$$DiarySettingImplCopyWith<$Res> { - __$$DiarySettingImplCopyWithImpl( - _$DiarySettingImpl _value, $Res Function(_$DiarySettingImpl) _then) - : super(_value, _then); + __$$DiarySettingImplCopyWithImpl(_$DiarySettingImpl _value, $Res Function(_$DiarySettingImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @override @@ -124,30 +106,24 @@ class __$$DiarySettingImplCopyWithImpl<$Res> class _$DiarySettingImpl extends _DiarySetting with DiagnosticableTreeMixin { const _$DiarySettingImpl( {final List physicalConditions = defaultPhysicalConditions, - @JsonKey( - fromJson: NonNullTimestampConverter.timestampToDateTime, - toJson: NonNullTimestampConverter.dateTimeToTimestamp) + @JsonKey(fromJson: NonNullTimestampConverter.timestampToDateTime, toJson: NonNullTimestampConverter.dateTimeToTimestamp) required this.createdAt}) : _physicalConditions = physicalConditions, super._(); - factory _$DiarySettingImpl.fromJson(Map json) => - _$$DiarySettingImplFromJson(json); + factory _$DiarySettingImpl.fromJson(Map json) => _$$DiarySettingImplFromJson(json); final List _physicalConditions; @override @JsonKey() List get physicalConditions { - if (_physicalConditions is EqualUnmodifiableListView) - return _physicalConditions; + if (_physicalConditions is EqualUnmodifiableListView) return _physicalConditions; // ignore: implicit_dynamic_type return EqualUnmodifiableListView(_physicalConditions); } @override - @JsonKey( - fromJson: NonNullTimestampConverter.timestampToDateTime, - toJson: NonNullTimestampConverter.dateTimeToTimestamp) + @JsonKey(fromJson: NonNullTimestampConverter.timestampToDateTime, toJson: NonNullTimestampConverter.dateTimeToTimestamp) final DateTime createdAt; @override @@ -169,22 +145,18 @@ class _$DiarySettingImpl extends _DiarySetting with DiagnosticableTreeMixin { return identical(this, other) || (other.runtimeType == runtimeType && other is _$DiarySettingImpl && - const DeepCollectionEquality() - .equals(other._physicalConditions, _physicalConditions) && - (identical(other.createdAt, createdAt) || - other.createdAt == createdAt)); + const DeepCollectionEquality().equals(other._physicalConditions, _physicalConditions) && + (identical(other.createdAt, createdAt) || other.createdAt == createdAt)); } @JsonKey(ignore: true) @override - int get hashCode => Object.hash(runtimeType, - const DeepCollectionEquality().hash(_physicalConditions), createdAt); + int get hashCode => Object.hash(runtimeType, const DeepCollectionEquality().hash(_physicalConditions), createdAt); @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$DiarySettingImplCopyWith<_$DiarySettingImpl> get copyWith => - __$$DiarySettingImplCopyWithImpl<_$DiarySettingImpl>(this, _$identity); + _$$DiarySettingImplCopyWith<_$DiarySettingImpl> get copyWith => __$$DiarySettingImplCopyWithImpl<_$DiarySettingImpl>(this, _$identity); @override Map toJson() { @@ -197,24 +169,18 @@ class _$DiarySettingImpl extends _DiarySetting with DiagnosticableTreeMixin { abstract class _DiarySetting extends DiarySetting { const factory _DiarySetting( {final List physicalConditions, - @JsonKey( - fromJson: NonNullTimestampConverter.timestampToDateTime, - toJson: NonNullTimestampConverter.dateTimeToTimestamp) + @JsonKey(fromJson: NonNullTimestampConverter.timestampToDateTime, toJson: NonNullTimestampConverter.dateTimeToTimestamp) required final DateTime createdAt}) = _$DiarySettingImpl; const _DiarySetting._() : super._(); - factory _DiarySetting.fromJson(Map json) = - _$DiarySettingImpl.fromJson; + factory _DiarySetting.fromJson(Map json) = _$DiarySettingImpl.fromJson; @override List get physicalConditions; @override - @JsonKey( - fromJson: NonNullTimestampConverter.timestampToDateTime, - toJson: NonNullTimestampConverter.dateTimeToTimestamp) + @JsonKey(fromJson: NonNullTimestampConverter.timestampToDateTime, toJson: NonNullTimestampConverter.dateTimeToTimestamp) DateTime get createdAt; @override @JsonKey(ignore: true) - _$$DiarySettingImplCopyWith<_$DiarySettingImpl> get copyWith => - throw _privateConstructorUsedError; + _$$DiarySettingImplCopyWith<_$DiarySettingImpl> get copyWith => throw _privateConstructorUsedError; } diff --git a/lib/entity/diary_setting.codegen.g.dart b/lib/entity/diary_setting.codegen.g.dart index 18c1b3f8a9..76c277abca 100644 --- a/lib/entity/diary_setting.codegen.g.dart +++ b/lib/entity/diary_setting.codegen.g.dart @@ -6,19 +6,12 @@ part of 'diary_setting.codegen.dart'; // JsonSerializableGenerator // ************************************************************************** -_$DiarySettingImpl _$$DiarySettingImplFromJson(Map json) => - _$DiarySettingImpl( - physicalConditions: (json['physicalConditions'] as List?) - ?.map((e) => e as String) - .toList() ?? - defaultPhysicalConditions, - createdAt: NonNullTimestampConverter.timestampToDateTime( - json['createdAt'] as Timestamp), +_$DiarySettingImpl _$$DiarySettingImplFromJson(Map json) => _$DiarySettingImpl( + physicalConditions: (json['physicalConditions'] as List?)?.map((e) => e as String).toList() ?? defaultPhysicalConditions, + createdAt: NonNullTimestampConverter.timestampToDateTime(json['createdAt'] as Timestamp), ); -Map _$$DiarySettingImplToJson(_$DiarySettingImpl instance) => - { +Map _$$DiarySettingImplToJson(_$DiarySettingImpl instance) => { 'physicalConditions': instance.physicalConditions, - 'createdAt': - NonNullTimestampConverter.dateTimeToTimestamp(instance.createdAt), + 'createdAt': NonNullTimestampConverter.dateTimeToTimestamp(instance.createdAt), }; diff --git a/lib/entity/firestore_timestamp_converter.dart b/lib/entity/firestore_timestamp_converter.dart index 6bc0b2ff7c..eec2be0b15 100644 --- a/lib/entity/firestore_timestamp_converter.dart +++ b/lib/entity/firestore_timestamp_converter.dart @@ -1,15 +1,11 @@ import 'package:cloud_firestore/cloud_firestore.dart'; class TimestampConverter { - static Timestamp? dateTimeToTimestamp(DateTime? dateTime) => - dateTime == null ? null : Timestamp.fromDate(dateTime); - static DateTime? timestampToDateTime(Timestamp? timestamp) => - timestamp?.toDate(); + static Timestamp? dateTimeToTimestamp(DateTime? dateTime) => dateTime == null ? null : Timestamp.fromDate(dateTime); + static DateTime? timestampToDateTime(Timestamp? timestamp) => timestamp?.toDate(); } class NonNullTimestampConverter { - static Timestamp dateTimeToTimestamp(DateTime dateTime) => - Timestamp.fromDate(dateTime); - static DateTime timestampToDateTime(Timestamp timestamp) => - timestamp.toDate(); + static Timestamp dateTimeToTimestamp(DateTime dateTime) => Timestamp.fromDate(dateTime); + static DateTime timestampToDateTime(Timestamp timestamp) => timestamp.toDate(); } diff --git a/lib/entity/menstruation.codegen.freezed.dart b/lib/entity/menstruation.codegen.freezed.dart index 9d3e79c191..64f6310d58 100644 --- a/lib/entity/menstruation.codegen.freezed.dart +++ b/lib/entity/menstruation.codegen.freezed.dart @@ -22,60 +22,36 @@ Menstruation _$MenstruationFromJson(Map json) { mixin _$Menstruation { @JsonKey(includeIfNull: false) String? get id => throw _privateConstructorUsedError; - @JsonKey( - fromJson: NonNullTimestampConverter.timestampToDateTime, - toJson: NonNullTimestampConverter.dateTimeToTimestamp) + @JsonKey(fromJson: NonNullTimestampConverter.timestampToDateTime, toJson: NonNullTimestampConverter.dateTimeToTimestamp) DateTime get beginDate => throw _privateConstructorUsedError; - @JsonKey( - fromJson: NonNullTimestampConverter.timestampToDateTime, - toJson: NonNullTimestampConverter.dateTimeToTimestamp) + @JsonKey(fromJson: NonNullTimestampConverter.timestampToDateTime, toJson: NonNullTimestampConverter.dateTimeToTimestamp) DateTime get endDate => throw _privateConstructorUsedError; - @JsonKey( - fromJson: TimestampConverter.timestampToDateTime, - toJson: TimestampConverter.dateTimeToTimestamp) + @JsonKey(fromJson: TimestampConverter.timestampToDateTime, toJson: TimestampConverter.dateTimeToTimestamp) DateTime? get deletedAt => throw _privateConstructorUsedError; - @JsonKey( - fromJson: NonNullTimestampConverter.timestampToDateTime, - toJson: NonNullTimestampConverter.dateTimeToTimestamp) + @JsonKey(fromJson: NonNullTimestampConverter.timestampToDateTime, toJson: NonNullTimestampConverter.dateTimeToTimestamp) DateTime get createdAt => throw _privateConstructorUsedError; String? get healthKitSampleDataUUID => throw _privateConstructorUsedError; Map toJson() => throw _privateConstructorUsedError; @JsonKey(ignore: true) - $MenstruationCopyWith get copyWith => - throw _privateConstructorUsedError; + $MenstruationCopyWith get copyWith => throw _privateConstructorUsedError; } /// @nodoc abstract class $MenstruationCopyWith<$Res> { - factory $MenstruationCopyWith( - Menstruation value, $Res Function(Menstruation) then) = - _$MenstruationCopyWithImpl<$Res, Menstruation>; + factory $MenstruationCopyWith(Menstruation value, $Res Function(Menstruation) then) = _$MenstruationCopyWithImpl<$Res, Menstruation>; @useResult $Res call( {@JsonKey(includeIfNull: false) String? id, - @JsonKey( - fromJson: NonNullTimestampConverter.timestampToDateTime, - toJson: NonNullTimestampConverter.dateTimeToTimestamp) - DateTime beginDate, - @JsonKey( - fromJson: NonNullTimestampConverter.timestampToDateTime, - toJson: NonNullTimestampConverter.dateTimeToTimestamp) - DateTime endDate, - @JsonKey( - fromJson: TimestampConverter.timestampToDateTime, - toJson: TimestampConverter.dateTimeToTimestamp) - DateTime? deletedAt, - @JsonKey( - fromJson: NonNullTimestampConverter.timestampToDateTime, - toJson: NonNullTimestampConverter.dateTimeToTimestamp) - DateTime createdAt, + @JsonKey(fromJson: NonNullTimestampConverter.timestampToDateTime, toJson: NonNullTimestampConverter.dateTimeToTimestamp) DateTime beginDate, + @JsonKey(fromJson: NonNullTimestampConverter.timestampToDateTime, toJson: NonNullTimestampConverter.dateTimeToTimestamp) DateTime endDate, + @JsonKey(fromJson: TimestampConverter.timestampToDateTime, toJson: TimestampConverter.dateTimeToTimestamp) DateTime? deletedAt, + @JsonKey(fromJson: NonNullTimestampConverter.timestampToDateTime, toJson: NonNullTimestampConverter.dateTimeToTimestamp) DateTime createdAt, String? healthKitSampleDataUUID}); } /// @nodoc -class _$MenstruationCopyWithImpl<$Res, $Val extends Menstruation> - implements $MenstruationCopyWith<$Res> { +class _$MenstruationCopyWithImpl<$Res, $Val extends Menstruation> implements $MenstruationCopyWith<$Res> { _$MenstruationCopyWithImpl(this._value, this._then); // ignore: unused_field @@ -123,41 +99,23 @@ class _$MenstruationCopyWithImpl<$Res, $Val extends Menstruation> } /// @nodoc -abstract class _$$MenstruationImplCopyWith<$Res> - implements $MenstruationCopyWith<$Res> { - factory _$$MenstruationImplCopyWith( - _$MenstruationImpl value, $Res Function(_$MenstruationImpl) then) = - __$$MenstruationImplCopyWithImpl<$Res>; +abstract class _$$MenstruationImplCopyWith<$Res> implements $MenstruationCopyWith<$Res> { + factory _$$MenstruationImplCopyWith(_$MenstruationImpl value, $Res Function(_$MenstruationImpl) then) = __$$MenstruationImplCopyWithImpl<$Res>; @override @useResult $Res call( {@JsonKey(includeIfNull: false) String? id, - @JsonKey( - fromJson: NonNullTimestampConverter.timestampToDateTime, - toJson: NonNullTimestampConverter.dateTimeToTimestamp) - DateTime beginDate, - @JsonKey( - fromJson: NonNullTimestampConverter.timestampToDateTime, - toJson: NonNullTimestampConverter.dateTimeToTimestamp) - DateTime endDate, - @JsonKey( - fromJson: TimestampConverter.timestampToDateTime, - toJson: TimestampConverter.dateTimeToTimestamp) - DateTime? deletedAt, - @JsonKey( - fromJson: NonNullTimestampConverter.timestampToDateTime, - toJson: NonNullTimestampConverter.dateTimeToTimestamp) - DateTime createdAt, + @JsonKey(fromJson: NonNullTimestampConverter.timestampToDateTime, toJson: NonNullTimestampConverter.dateTimeToTimestamp) DateTime beginDate, + @JsonKey(fromJson: NonNullTimestampConverter.timestampToDateTime, toJson: NonNullTimestampConverter.dateTimeToTimestamp) DateTime endDate, + @JsonKey(fromJson: TimestampConverter.timestampToDateTime, toJson: TimestampConverter.dateTimeToTimestamp) DateTime? deletedAt, + @JsonKey(fromJson: NonNullTimestampConverter.timestampToDateTime, toJson: NonNullTimestampConverter.dateTimeToTimestamp) DateTime createdAt, String? healthKitSampleDataUUID}); } /// @nodoc -class __$$MenstruationImplCopyWithImpl<$Res> - extends _$MenstruationCopyWithImpl<$Res, _$MenstruationImpl> +class __$$MenstruationImplCopyWithImpl<$Res> extends _$MenstruationCopyWithImpl<$Res, _$MenstruationImpl> implements _$$MenstruationImplCopyWith<$Res> { - __$$MenstruationImplCopyWithImpl( - _$MenstruationImpl _value, $Res Function(_$MenstruationImpl) _then) - : super(_value, _then); + __$$MenstruationImplCopyWithImpl(_$MenstruationImpl _value, $Res Function(_$MenstruationImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @override @@ -204,50 +162,31 @@ class __$$MenstruationImplCopyWithImpl<$Res> class _$MenstruationImpl extends _Menstruation { const _$MenstruationImpl( {@JsonKey(includeIfNull: false) this.id, - @JsonKey( - fromJson: NonNullTimestampConverter.timestampToDateTime, - toJson: NonNullTimestampConverter.dateTimeToTimestamp) + @JsonKey(fromJson: NonNullTimestampConverter.timestampToDateTime, toJson: NonNullTimestampConverter.dateTimeToTimestamp) required this.beginDate, - @JsonKey( - fromJson: NonNullTimestampConverter.timestampToDateTime, - toJson: NonNullTimestampConverter.dateTimeToTimestamp) - required this.endDate, - @JsonKey( - fromJson: TimestampConverter.timestampToDateTime, - toJson: TimestampConverter.dateTimeToTimestamp) - this.deletedAt, - @JsonKey( - fromJson: NonNullTimestampConverter.timestampToDateTime, - toJson: NonNullTimestampConverter.dateTimeToTimestamp) + @JsonKey(fromJson: NonNullTimestampConverter.timestampToDateTime, toJson: NonNullTimestampConverter.dateTimeToTimestamp) required this.endDate, + @JsonKey(fromJson: TimestampConverter.timestampToDateTime, toJson: TimestampConverter.dateTimeToTimestamp) this.deletedAt, + @JsonKey(fromJson: NonNullTimestampConverter.timestampToDateTime, toJson: NonNullTimestampConverter.dateTimeToTimestamp) required this.createdAt, this.healthKitSampleDataUUID}) : super._(); - factory _$MenstruationImpl.fromJson(Map json) => - _$$MenstruationImplFromJson(json); + factory _$MenstruationImpl.fromJson(Map json) => _$$MenstruationImplFromJson(json); @override @JsonKey(includeIfNull: false) final String? id; @override - @JsonKey( - fromJson: NonNullTimestampConverter.timestampToDateTime, - toJson: NonNullTimestampConverter.dateTimeToTimestamp) + @JsonKey(fromJson: NonNullTimestampConverter.timestampToDateTime, toJson: NonNullTimestampConverter.dateTimeToTimestamp) final DateTime beginDate; @override - @JsonKey( - fromJson: NonNullTimestampConverter.timestampToDateTime, - toJson: NonNullTimestampConverter.dateTimeToTimestamp) + @JsonKey(fromJson: NonNullTimestampConverter.timestampToDateTime, toJson: NonNullTimestampConverter.dateTimeToTimestamp) final DateTime endDate; @override - @JsonKey( - fromJson: TimestampConverter.timestampToDateTime, - toJson: TimestampConverter.dateTimeToTimestamp) + @JsonKey(fromJson: TimestampConverter.timestampToDateTime, toJson: TimestampConverter.dateTimeToTimestamp) final DateTime? deletedAt; @override - @JsonKey( - fromJson: NonNullTimestampConverter.timestampToDateTime, - toJson: NonNullTimestampConverter.dateTimeToTimestamp) + @JsonKey(fromJson: NonNullTimestampConverter.timestampToDateTime, toJson: NonNullTimestampConverter.dateTimeToTimestamp) final DateTime createdAt; @override final String? healthKitSampleDataUUID; @@ -263,28 +202,21 @@ class _$MenstruationImpl extends _Menstruation { (other.runtimeType == runtimeType && other is _$MenstruationImpl && (identical(other.id, id) || other.id == id) && - (identical(other.beginDate, beginDate) || - other.beginDate == beginDate) && + (identical(other.beginDate, beginDate) || other.beginDate == beginDate) && (identical(other.endDate, endDate) || other.endDate == endDate) && - (identical(other.deletedAt, deletedAt) || - other.deletedAt == deletedAt) && - (identical(other.createdAt, createdAt) || - other.createdAt == createdAt) && - (identical( - other.healthKitSampleDataUUID, healthKitSampleDataUUID) || - other.healthKitSampleDataUUID == healthKitSampleDataUUID)); + (identical(other.deletedAt, deletedAt) || other.deletedAt == deletedAt) && + (identical(other.createdAt, createdAt) || other.createdAt == createdAt) && + (identical(other.healthKitSampleDataUUID, healthKitSampleDataUUID) || other.healthKitSampleDataUUID == healthKitSampleDataUUID)); } @JsonKey(ignore: true) @override - int get hashCode => Object.hash(runtimeType, id, beginDate, endDate, - deletedAt, createdAt, healthKitSampleDataUUID); + int get hashCode => Object.hash(runtimeType, id, beginDate, endDate, deletedAt, createdAt, healthKitSampleDataUUID); @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$MenstruationImplCopyWith<_$MenstruationImpl> get copyWith => - __$$MenstruationImplCopyWithImpl<_$MenstruationImpl>(this, _$identity); + _$$MenstruationImplCopyWith<_$MenstruationImpl> get copyWith => __$$MenstruationImplCopyWithImpl<_$MenstruationImpl>(this, _$identity); @override Map toJson() { @@ -297,55 +229,36 @@ class _$MenstruationImpl extends _Menstruation { abstract class _Menstruation extends Menstruation { const factory _Menstruation( {@JsonKey(includeIfNull: false) final String? id, - @JsonKey( - fromJson: NonNullTimestampConverter.timestampToDateTime, - toJson: NonNullTimestampConverter.dateTimeToTimestamp) + @JsonKey(fromJson: NonNullTimestampConverter.timestampToDateTime, toJson: NonNullTimestampConverter.dateTimeToTimestamp) required final DateTime beginDate, - @JsonKey( - fromJson: NonNullTimestampConverter.timestampToDateTime, - toJson: NonNullTimestampConverter.dateTimeToTimestamp) + @JsonKey(fromJson: NonNullTimestampConverter.timestampToDateTime, toJson: NonNullTimestampConverter.dateTimeToTimestamp) required final DateTime endDate, - @JsonKey( - fromJson: TimestampConverter.timestampToDateTime, - toJson: TimestampConverter.dateTimeToTimestamp) - final DateTime? deletedAt, - @JsonKey( - fromJson: NonNullTimestampConverter.timestampToDateTime, - toJson: NonNullTimestampConverter.dateTimeToTimestamp) + @JsonKey(fromJson: TimestampConverter.timestampToDateTime, toJson: TimestampConverter.dateTimeToTimestamp) final DateTime? deletedAt, + @JsonKey(fromJson: NonNullTimestampConverter.timestampToDateTime, toJson: NonNullTimestampConverter.dateTimeToTimestamp) required final DateTime createdAt, final String? healthKitSampleDataUUID}) = _$MenstruationImpl; const _Menstruation._() : super._(); - factory _Menstruation.fromJson(Map json) = - _$MenstruationImpl.fromJson; + factory _Menstruation.fromJson(Map json) = _$MenstruationImpl.fromJson; @override @JsonKey(includeIfNull: false) String? get id; @override - @JsonKey( - fromJson: NonNullTimestampConverter.timestampToDateTime, - toJson: NonNullTimestampConverter.dateTimeToTimestamp) + @JsonKey(fromJson: NonNullTimestampConverter.timestampToDateTime, toJson: NonNullTimestampConverter.dateTimeToTimestamp) DateTime get beginDate; @override - @JsonKey( - fromJson: NonNullTimestampConverter.timestampToDateTime, - toJson: NonNullTimestampConverter.dateTimeToTimestamp) + @JsonKey(fromJson: NonNullTimestampConverter.timestampToDateTime, toJson: NonNullTimestampConverter.dateTimeToTimestamp) DateTime get endDate; @override - @JsonKey( - fromJson: TimestampConverter.timestampToDateTime, - toJson: TimestampConverter.dateTimeToTimestamp) + @JsonKey(fromJson: TimestampConverter.timestampToDateTime, toJson: TimestampConverter.dateTimeToTimestamp) DateTime? get deletedAt; @override - @JsonKey( - fromJson: NonNullTimestampConverter.timestampToDateTime, - toJson: NonNullTimestampConverter.dateTimeToTimestamp) + @JsonKey(fromJson: NonNullTimestampConverter.timestampToDateTime, toJson: NonNullTimestampConverter.dateTimeToTimestamp) DateTime get createdAt; @override String? get healthKitSampleDataUUID; @override @JsonKey(ignore: true) - _$$MenstruationImplCopyWith<_$MenstruationImpl> get copyWith => - throw _privateConstructorUsedError; + _$$MenstruationImplCopyWith<_$MenstruationImpl> get copyWith => throw _privateConstructorUsedError; } diff --git a/lib/entity/menstruation.codegen.g.dart b/lib/entity/menstruation.codegen.g.dart index 2bc3c83237..5f97eaebab 100644 --- a/lib/entity/menstruation.codegen.g.dart +++ b/lib/entity/menstruation.codegen.g.dart @@ -6,17 +6,12 @@ part of 'menstruation.codegen.dart'; // JsonSerializableGenerator // ************************************************************************** -_$MenstruationImpl _$$MenstruationImplFromJson(Map json) => - _$MenstruationImpl( +_$MenstruationImpl _$$MenstruationImplFromJson(Map json) => _$MenstruationImpl( id: json['id'] as String?, - beginDate: NonNullTimestampConverter.timestampToDateTime( - json['beginDate'] as Timestamp), - endDate: NonNullTimestampConverter.timestampToDateTime( - json['endDate'] as Timestamp), - deletedAt: TimestampConverter.timestampToDateTime( - json['deletedAt'] as Timestamp?), - createdAt: NonNullTimestampConverter.timestampToDateTime( - json['createdAt'] as Timestamp), + beginDate: NonNullTimestampConverter.timestampToDateTime(json['beginDate'] as Timestamp), + endDate: NonNullTimestampConverter.timestampToDateTime(json['endDate'] as Timestamp), + deletedAt: TimestampConverter.timestampToDateTime(json['deletedAt'] as Timestamp?), + createdAt: NonNullTimestampConverter.timestampToDateTime(json['createdAt'] as Timestamp), healthKitSampleDataUUID: json['healthKitSampleDataUUID'] as String?, ); @@ -30,13 +25,10 @@ Map _$$MenstruationImplToJson(_$MenstruationImpl instance) { } writeNotNull('id', instance.id); - val['beginDate'] = - NonNullTimestampConverter.dateTimeToTimestamp(instance.beginDate); - val['endDate'] = - NonNullTimestampConverter.dateTimeToTimestamp(instance.endDate); + val['beginDate'] = NonNullTimestampConverter.dateTimeToTimestamp(instance.beginDate); + val['endDate'] = NonNullTimestampConverter.dateTimeToTimestamp(instance.endDate); val['deletedAt'] = TimestampConverter.dateTimeToTimestamp(instance.deletedAt); - val['createdAt'] = - NonNullTimestampConverter.dateTimeToTimestamp(instance.createdAt); + val['createdAt'] = NonNullTimestampConverter.dateTimeToTimestamp(instance.createdAt); val['healthKitSampleDataUUID'] = instance.healthKitSampleDataUUID; return val; } diff --git a/lib/entity/package.codegen.dart b/lib/entity/package.codegen.dart index a2930a8cfa..cd3371ac50 100644 --- a/lib/entity/package.codegen.dart +++ b/lib/entity/package.codegen.dart @@ -17,6 +17,5 @@ class Package with _$Package { required String buildNumber, }) = _Package; - factory Package.fromJson(Map json) => - _$PackageFromJson(json); + factory Package.fromJson(Map json) => _$PackageFromJson(json); } diff --git a/lib/entity/package.codegen.freezed.dart b/lib/entity/package.codegen.freezed.dart index cc6c54c65a..28b430ab0f 100644 --- a/lib/entity/package.codegen.freezed.dart +++ b/lib/entity/package.codegen.freezed.dart @@ -32,16 +32,13 @@ mixin _$Package { /// @nodoc abstract class $PackageCopyWith<$Res> { - factory $PackageCopyWith(Package value, $Res Function(Package) then) = - _$PackageCopyWithImpl<$Res, Package>; + factory $PackageCopyWith(Package value, $Res Function(Package) then) = _$PackageCopyWithImpl<$Res, Package>; @useResult - $Res call( - {String latestOS, String appName, String appVersion, String buildNumber}); + $Res call({String latestOS, String appName, String appVersion, String buildNumber}); } /// @nodoc -class _$PackageCopyWithImpl<$Res, $Val extends Package> - implements $PackageCopyWith<$Res> { +class _$PackageCopyWithImpl<$Res, $Val extends Package> implements $PackageCopyWith<$Res> { _$PackageCopyWithImpl(this._value, this._then); // ignore: unused_field @@ -80,22 +77,15 @@ class _$PackageCopyWithImpl<$Res, $Val extends Package> /// @nodoc abstract class _$$PackageImplCopyWith<$Res> implements $PackageCopyWith<$Res> { - factory _$$PackageImplCopyWith( - _$PackageImpl value, $Res Function(_$PackageImpl) then) = - __$$PackageImplCopyWithImpl<$Res>; + factory _$$PackageImplCopyWith(_$PackageImpl value, $Res Function(_$PackageImpl) then) = __$$PackageImplCopyWithImpl<$Res>; @override @useResult - $Res call( - {String latestOS, String appName, String appVersion, String buildNumber}); + $Res call({String latestOS, String appName, String appVersion, String buildNumber}); } /// @nodoc -class __$$PackageImplCopyWithImpl<$Res> - extends _$PackageCopyWithImpl<$Res, _$PackageImpl> - implements _$$PackageImplCopyWith<$Res> { - __$$PackageImplCopyWithImpl( - _$PackageImpl _value, $Res Function(_$PackageImpl) _then) - : super(_value, _then); +class __$$PackageImplCopyWithImpl<$Res> extends _$PackageCopyWithImpl<$Res, _$PackageImpl> implements _$$PackageImplCopyWith<$Res> { + __$$PackageImplCopyWithImpl(_$PackageImpl _value, $Res Function(_$PackageImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @override @@ -130,14 +120,9 @@ class __$$PackageImplCopyWithImpl<$Res> @JsonSerializable(explicitToJson: true) class _$PackageImpl implements _Package { - const _$PackageImpl( - {required this.latestOS, - required this.appName, - required this.appVersion, - required this.buildNumber}); + const _$PackageImpl({required this.latestOS, required this.appName, required this.appVersion, required this.buildNumber}); - factory _$PackageImpl.fromJson(Map json) => - _$$PackageImplFromJson(json); + factory _$PackageImpl.fromJson(Map json) => _$$PackageImplFromJson(json); @override final String latestOS; @@ -158,25 +143,20 @@ class _$PackageImpl implements _Package { return identical(this, other) || (other.runtimeType == runtimeType && other is _$PackageImpl && - (identical(other.latestOS, latestOS) || - other.latestOS == latestOS) && + (identical(other.latestOS, latestOS) || other.latestOS == latestOS) && (identical(other.appName, appName) || other.appName == appName) && - (identical(other.appVersion, appVersion) || - other.appVersion == appVersion) && - (identical(other.buildNumber, buildNumber) || - other.buildNumber == buildNumber)); + (identical(other.appVersion, appVersion) || other.appVersion == appVersion) && + (identical(other.buildNumber, buildNumber) || other.buildNumber == buildNumber)); } @JsonKey(ignore: true) @override - int get hashCode => - Object.hash(runtimeType, latestOS, appName, appVersion, buildNumber); + int get hashCode => Object.hash(runtimeType, latestOS, appName, appVersion, buildNumber); @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$PackageImplCopyWith<_$PackageImpl> get copyWith => - __$$PackageImplCopyWithImpl<_$PackageImpl>(this, _$identity); + _$$PackageImplCopyWith<_$PackageImpl> get copyWith => __$$PackageImplCopyWithImpl<_$PackageImpl>(this, _$identity); @override Map toJson() { @@ -205,6 +185,5 @@ abstract class _Package implements Package { String get buildNumber; @override @JsonKey(ignore: true) - _$$PackageImplCopyWith<_$PackageImpl> get copyWith => - throw _privateConstructorUsedError; + _$$PackageImplCopyWith<_$PackageImpl> get copyWith => throw _privateConstructorUsedError; } diff --git a/lib/entity/package.codegen.g.dart b/lib/entity/package.codegen.g.dart index bc99ca1a26..0f446d544a 100644 --- a/lib/entity/package.codegen.g.dart +++ b/lib/entity/package.codegen.g.dart @@ -6,16 +6,14 @@ part of 'package.codegen.dart'; // JsonSerializableGenerator // ************************************************************************** -_$PackageImpl _$$PackageImplFromJson(Map json) => - _$PackageImpl( +_$PackageImpl _$$PackageImplFromJson(Map json) => _$PackageImpl( latestOS: json['latestOS'] as String, appName: json['appName'] as String, appVersion: json['appVersion'] as String, buildNumber: json['buildNumber'] as String, ); -Map _$$PackageImplToJson(_$PackageImpl instance) => - { +Map _$$PackageImplToJson(_$PackageImpl instance) => { 'latestOS': instance.latestOS, 'appName': instance.appName, 'appVersion': instance.appVersion, diff --git a/lib/entity/pill_sheet.codegen.freezed.dart b/lib/entity/pill_sheet.codegen.freezed.dart index cdc24dbb14..19302e2a8b 100644 --- a/lib/entity/pill_sheet.codegen.freezed.dart +++ b/lib/entity/pill_sheet.codegen.freezed.dart @@ -27,26 +27,19 @@ mixin _$PillSheetTypeInfo { Map toJson() => throw _privateConstructorUsedError; @JsonKey(ignore: true) - $PillSheetTypeInfoCopyWith get copyWith => - throw _privateConstructorUsedError; + $PillSheetTypeInfoCopyWith get copyWith => throw _privateConstructorUsedError; } /// @nodoc abstract class $PillSheetTypeInfoCopyWith<$Res> { - factory $PillSheetTypeInfoCopyWith( - PillSheetTypeInfo value, $Res Function(PillSheetTypeInfo) then) = + factory $PillSheetTypeInfoCopyWith(PillSheetTypeInfo value, $Res Function(PillSheetTypeInfo) then) = _$PillSheetTypeInfoCopyWithImpl<$Res, PillSheetTypeInfo>; @useResult - $Res call( - {String pillSheetTypeReferencePath, - String name, - int totalCount, - int dosingPeriod}); + $Res call({String pillSheetTypeReferencePath, String name, int totalCount, int dosingPeriod}); } /// @nodoc -class _$PillSheetTypeInfoCopyWithImpl<$Res, $Val extends PillSheetTypeInfo> - implements $PillSheetTypeInfoCopyWith<$Res> { +class _$PillSheetTypeInfoCopyWithImpl<$Res, $Val extends PillSheetTypeInfo> implements $PillSheetTypeInfoCopyWith<$Res> { _$PillSheetTypeInfoCopyWithImpl(this._value, this._then); // ignore: unused_field @@ -84,27 +77,18 @@ class _$PillSheetTypeInfoCopyWithImpl<$Res, $Val extends PillSheetTypeInfo> } /// @nodoc -abstract class _$$PillSheetTypeInfoImplCopyWith<$Res> - implements $PillSheetTypeInfoCopyWith<$Res> { - factory _$$PillSheetTypeInfoImplCopyWith(_$PillSheetTypeInfoImpl value, - $Res Function(_$PillSheetTypeInfoImpl) then) = +abstract class _$$PillSheetTypeInfoImplCopyWith<$Res> implements $PillSheetTypeInfoCopyWith<$Res> { + factory _$$PillSheetTypeInfoImplCopyWith(_$PillSheetTypeInfoImpl value, $Res Function(_$PillSheetTypeInfoImpl) then) = __$$PillSheetTypeInfoImplCopyWithImpl<$Res>; @override @useResult - $Res call( - {String pillSheetTypeReferencePath, - String name, - int totalCount, - int dosingPeriod}); + $Res call({String pillSheetTypeReferencePath, String name, int totalCount, int dosingPeriod}); } /// @nodoc -class __$$PillSheetTypeInfoImplCopyWithImpl<$Res> - extends _$PillSheetTypeInfoCopyWithImpl<$Res, _$PillSheetTypeInfoImpl> +class __$$PillSheetTypeInfoImplCopyWithImpl<$Res> extends _$PillSheetTypeInfoCopyWithImpl<$Res, _$PillSheetTypeInfoImpl> implements _$$PillSheetTypeInfoImplCopyWith<$Res> { - __$$PillSheetTypeInfoImplCopyWithImpl(_$PillSheetTypeInfoImpl _value, - $Res Function(_$PillSheetTypeInfoImpl) _then) - : super(_value, _then); + __$$PillSheetTypeInfoImplCopyWithImpl(_$PillSheetTypeInfoImpl _value, $Res Function(_$PillSheetTypeInfoImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @override @@ -139,14 +123,9 @@ class __$$PillSheetTypeInfoImplCopyWithImpl<$Res> @JsonSerializable(explicitToJson: true) class _$PillSheetTypeInfoImpl implements _PillSheetTypeInfo { - const _$PillSheetTypeInfoImpl( - {required this.pillSheetTypeReferencePath, - required this.name, - required this.totalCount, - required this.dosingPeriod}); + const _$PillSheetTypeInfoImpl({required this.pillSheetTypeReferencePath, required this.name, required this.totalCount, required this.dosingPeriod}); - factory _$PillSheetTypeInfoImpl.fromJson(Map json) => - _$$PillSheetTypeInfoImplFromJson(json); + factory _$PillSheetTypeInfoImpl.fromJson(Map json) => _$$PillSheetTypeInfoImplFromJson(json); @override final String pillSheetTypeReferencePath; @@ -167,28 +146,22 @@ class _$PillSheetTypeInfoImpl implements _PillSheetTypeInfo { return identical(this, other) || (other.runtimeType == runtimeType && other is _$PillSheetTypeInfoImpl && - (identical(other.pillSheetTypeReferencePath, - pillSheetTypeReferencePath) || - other.pillSheetTypeReferencePath == - pillSheetTypeReferencePath) && + (identical(other.pillSheetTypeReferencePath, pillSheetTypeReferencePath) || + other.pillSheetTypeReferencePath == pillSheetTypeReferencePath) && (identical(other.name, name) || other.name == name) && - (identical(other.totalCount, totalCount) || - other.totalCount == totalCount) && - (identical(other.dosingPeriod, dosingPeriod) || - other.dosingPeriod == dosingPeriod)); + (identical(other.totalCount, totalCount) || other.totalCount == totalCount) && + (identical(other.dosingPeriod, dosingPeriod) || other.dosingPeriod == dosingPeriod)); } @JsonKey(ignore: true) @override - int get hashCode => Object.hash( - runtimeType, pillSheetTypeReferencePath, name, totalCount, dosingPeriod); + int get hashCode => Object.hash(runtimeType, pillSheetTypeReferencePath, name, totalCount, dosingPeriod); @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') _$$PillSheetTypeInfoImplCopyWith<_$PillSheetTypeInfoImpl> get copyWith => - __$$PillSheetTypeInfoImplCopyWithImpl<_$PillSheetTypeInfoImpl>( - this, _$identity); + __$$PillSheetTypeInfoImplCopyWithImpl<_$PillSheetTypeInfoImpl>(this, _$identity); @override Map toJson() { @@ -205,8 +178,7 @@ abstract class _PillSheetTypeInfo implements PillSheetTypeInfo { required final int totalCount, required final int dosingPeriod}) = _$PillSheetTypeInfoImpl; - factory _PillSheetTypeInfo.fromJson(Map json) = - _$PillSheetTypeInfoImpl.fromJson; + factory _PillSheetTypeInfo.fromJson(Map json) = _$PillSheetTypeInfoImpl.fromJson; @override String get pillSheetTypeReferencePath; @@ -218,8 +190,7 @@ abstract class _PillSheetTypeInfo implements PillSheetTypeInfo { int get dosingPeriod; @override @JsonKey(ignore: true) - _$$PillSheetTypeInfoImplCopyWith<_$PillSheetTypeInfoImpl> get copyWith => - throw _privateConstructorUsedError; + _$$PillSheetTypeInfoImplCopyWith<_$PillSheetTypeInfoImpl> get copyWith => throw _privateConstructorUsedError; } RestDuration _$RestDurationFromJson(Map json) { @@ -230,50 +201,31 @@ RestDuration _$RestDurationFromJson(Map json) { mixin _$RestDuration { // from: 2024-03-28の実装時に追加。調査しやすいようにuuidを入れておく String? get id => throw _privateConstructorUsedError; - @JsonKey( - fromJson: NonNullTimestampConverter.timestampToDateTime, - toJson: NonNullTimestampConverter.dateTimeToTimestamp) + @JsonKey(fromJson: NonNullTimestampConverter.timestampToDateTime, toJson: NonNullTimestampConverter.dateTimeToTimestamp) DateTime get beginDate => throw _privateConstructorUsedError; - @JsonKey( - fromJson: TimestampConverter.timestampToDateTime, - toJson: TimestampConverter.dateTimeToTimestamp) + @JsonKey(fromJson: TimestampConverter.timestampToDateTime, toJson: TimestampConverter.dateTimeToTimestamp) DateTime? get endDate => throw _privateConstructorUsedError; - @JsonKey( - fromJson: NonNullTimestampConverter.timestampToDateTime, - toJson: NonNullTimestampConverter.dateTimeToTimestamp) + @JsonKey(fromJson: NonNullTimestampConverter.timestampToDateTime, toJson: NonNullTimestampConverter.dateTimeToTimestamp) DateTime get createdDate => throw _privateConstructorUsedError; Map toJson() => throw _privateConstructorUsedError; @JsonKey(ignore: true) - $RestDurationCopyWith get copyWith => - throw _privateConstructorUsedError; + $RestDurationCopyWith get copyWith => throw _privateConstructorUsedError; } /// @nodoc abstract class $RestDurationCopyWith<$Res> { - factory $RestDurationCopyWith( - RestDuration value, $Res Function(RestDuration) then) = - _$RestDurationCopyWithImpl<$Res, RestDuration>; + factory $RestDurationCopyWith(RestDuration value, $Res Function(RestDuration) then) = _$RestDurationCopyWithImpl<$Res, RestDuration>; @useResult $Res call( {String? id, - @JsonKey( - fromJson: NonNullTimestampConverter.timestampToDateTime, - toJson: NonNullTimestampConverter.dateTimeToTimestamp) - DateTime beginDate, - @JsonKey( - fromJson: TimestampConverter.timestampToDateTime, - toJson: TimestampConverter.dateTimeToTimestamp) - DateTime? endDate, - @JsonKey( - fromJson: NonNullTimestampConverter.timestampToDateTime, - toJson: NonNullTimestampConverter.dateTimeToTimestamp) - DateTime createdDate}); + @JsonKey(fromJson: NonNullTimestampConverter.timestampToDateTime, toJson: NonNullTimestampConverter.dateTimeToTimestamp) DateTime beginDate, + @JsonKey(fromJson: TimestampConverter.timestampToDateTime, toJson: TimestampConverter.dateTimeToTimestamp) DateTime? endDate, + @JsonKey(fromJson: NonNullTimestampConverter.timestampToDateTime, toJson: NonNullTimestampConverter.dateTimeToTimestamp) DateTime createdDate}); } /// @nodoc -class _$RestDurationCopyWithImpl<$Res, $Val extends RestDuration> - implements $RestDurationCopyWith<$Res> { +class _$RestDurationCopyWithImpl<$Res, $Val extends RestDuration> implements $RestDurationCopyWith<$Res> { _$RestDurationCopyWithImpl(this._value, this._then); // ignore: unused_field @@ -311,36 +263,21 @@ class _$RestDurationCopyWithImpl<$Res, $Val extends RestDuration> } /// @nodoc -abstract class _$$RestDurationImplCopyWith<$Res> - implements $RestDurationCopyWith<$Res> { - factory _$$RestDurationImplCopyWith( - _$RestDurationImpl value, $Res Function(_$RestDurationImpl) then) = - __$$RestDurationImplCopyWithImpl<$Res>; +abstract class _$$RestDurationImplCopyWith<$Res> implements $RestDurationCopyWith<$Res> { + factory _$$RestDurationImplCopyWith(_$RestDurationImpl value, $Res Function(_$RestDurationImpl) then) = __$$RestDurationImplCopyWithImpl<$Res>; @override @useResult $Res call( {String? id, - @JsonKey( - fromJson: NonNullTimestampConverter.timestampToDateTime, - toJson: NonNullTimestampConverter.dateTimeToTimestamp) - DateTime beginDate, - @JsonKey( - fromJson: TimestampConverter.timestampToDateTime, - toJson: TimestampConverter.dateTimeToTimestamp) - DateTime? endDate, - @JsonKey( - fromJson: NonNullTimestampConverter.timestampToDateTime, - toJson: NonNullTimestampConverter.dateTimeToTimestamp) - DateTime createdDate}); + @JsonKey(fromJson: NonNullTimestampConverter.timestampToDateTime, toJson: NonNullTimestampConverter.dateTimeToTimestamp) DateTime beginDate, + @JsonKey(fromJson: TimestampConverter.timestampToDateTime, toJson: TimestampConverter.dateTimeToTimestamp) DateTime? endDate, + @JsonKey(fromJson: NonNullTimestampConverter.timestampToDateTime, toJson: NonNullTimestampConverter.dateTimeToTimestamp) DateTime createdDate}); } /// @nodoc -class __$$RestDurationImplCopyWithImpl<$Res> - extends _$RestDurationCopyWithImpl<$Res, _$RestDurationImpl> +class __$$RestDurationImplCopyWithImpl<$Res> extends _$RestDurationCopyWithImpl<$Res, _$RestDurationImpl> implements _$$RestDurationImplCopyWith<$Res> { - __$$RestDurationImplCopyWithImpl( - _$RestDurationImpl _value, $Res Function(_$RestDurationImpl) _then) - : super(_value, _then); + __$$RestDurationImplCopyWithImpl(_$RestDurationImpl _value, $Res Function(_$RestDurationImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @override @@ -377,40 +314,26 @@ class __$$RestDurationImplCopyWithImpl<$Res> class _$RestDurationImpl extends _RestDuration { const _$RestDurationImpl( {required this.id, - @JsonKey( - fromJson: NonNullTimestampConverter.timestampToDateTime, - toJson: NonNullTimestampConverter.dateTimeToTimestamp) + @JsonKey(fromJson: NonNullTimestampConverter.timestampToDateTime, toJson: NonNullTimestampConverter.dateTimeToTimestamp) required this.beginDate, - @JsonKey( - fromJson: TimestampConverter.timestampToDateTime, - toJson: TimestampConverter.dateTimeToTimestamp) - this.endDate, - @JsonKey( - fromJson: NonNullTimestampConverter.timestampToDateTime, - toJson: NonNullTimestampConverter.dateTimeToTimestamp) + @JsonKey(fromJson: TimestampConverter.timestampToDateTime, toJson: TimestampConverter.dateTimeToTimestamp) this.endDate, + @JsonKey(fromJson: NonNullTimestampConverter.timestampToDateTime, toJson: NonNullTimestampConverter.dateTimeToTimestamp) required this.createdDate}) : super._(); - factory _$RestDurationImpl.fromJson(Map json) => - _$$RestDurationImplFromJson(json); + factory _$RestDurationImpl.fromJson(Map json) => _$$RestDurationImplFromJson(json); // from: 2024-03-28の実装時に追加。調査しやすいようにuuidを入れておく @override final String? id; @override - @JsonKey( - fromJson: NonNullTimestampConverter.timestampToDateTime, - toJson: NonNullTimestampConverter.dateTimeToTimestamp) + @JsonKey(fromJson: NonNullTimestampConverter.timestampToDateTime, toJson: NonNullTimestampConverter.dateTimeToTimestamp) final DateTime beginDate; @override - @JsonKey( - fromJson: TimestampConverter.timestampToDateTime, - toJson: TimestampConverter.dateTimeToTimestamp) + @JsonKey(fromJson: TimestampConverter.timestampToDateTime, toJson: TimestampConverter.dateTimeToTimestamp) final DateTime? endDate; @override - @JsonKey( - fromJson: NonNullTimestampConverter.timestampToDateTime, - toJson: NonNullTimestampConverter.dateTimeToTimestamp) + @JsonKey(fromJson: NonNullTimestampConverter.timestampToDateTime, toJson: NonNullTimestampConverter.dateTimeToTimestamp) final DateTime createdDate; @override @@ -424,23 +347,19 @@ class _$RestDurationImpl extends _RestDuration { (other.runtimeType == runtimeType && other is _$RestDurationImpl && (identical(other.id, id) || other.id == id) && - (identical(other.beginDate, beginDate) || - other.beginDate == beginDate) && + (identical(other.beginDate, beginDate) || other.beginDate == beginDate) && (identical(other.endDate, endDate) || other.endDate == endDate) && - (identical(other.createdDate, createdDate) || - other.createdDate == createdDate)); + (identical(other.createdDate, createdDate) || other.createdDate == createdDate)); } @JsonKey(ignore: true) @override - int get hashCode => - Object.hash(runtimeType, id, beginDate, endDate, createdDate); + int get hashCode => Object.hash(runtimeType, id, beginDate, endDate, createdDate); @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$RestDurationImplCopyWith<_$RestDurationImpl> get copyWith => - __$$RestDurationImplCopyWithImpl<_$RestDurationImpl>(this, _$identity); + _$$RestDurationImplCopyWith<_$RestDurationImpl> get copyWith => __$$RestDurationImplCopyWithImpl<_$RestDurationImpl>(this, _$identity); @override Map toJson() { @@ -453,44 +372,29 @@ class _$RestDurationImpl extends _RestDuration { abstract class _RestDuration extends RestDuration { const factory _RestDuration( {required final String? id, - @JsonKey( - fromJson: NonNullTimestampConverter.timestampToDateTime, - toJson: NonNullTimestampConverter.dateTimeToTimestamp) + @JsonKey(fromJson: NonNullTimestampConverter.timestampToDateTime, toJson: NonNullTimestampConverter.dateTimeToTimestamp) required final DateTime beginDate, - @JsonKey( - fromJson: TimestampConverter.timestampToDateTime, - toJson: TimestampConverter.dateTimeToTimestamp) - final DateTime? endDate, - @JsonKey( - fromJson: NonNullTimestampConverter.timestampToDateTime, - toJson: NonNullTimestampConverter.dateTimeToTimestamp) + @JsonKey(fromJson: TimestampConverter.timestampToDateTime, toJson: TimestampConverter.dateTimeToTimestamp) final DateTime? endDate, + @JsonKey(fromJson: NonNullTimestampConverter.timestampToDateTime, toJson: NonNullTimestampConverter.dateTimeToTimestamp) required final DateTime createdDate}) = _$RestDurationImpl; const _RestDuration._() : super._(); - factory _RestDuration.fromJson(Map json) = - _$RestDurationImpl.fromJson; + factory _RestDuration.fromJson(Map json) = _$RestDurationImpl.fromJson; @override // from: 2024-03-28の実装時に追加。調査しやすいようにuuidを入れておく String? get id; @override - @JsonKey( - fromJson: NonNullTimestampConverter.timestampToDateTime, - toJson: NonNullTimestampConverter.dateTimeToTimestamp) + @JsonKey(fromJson: NonNullTimestampConverter.timestampToDateTime, toJson: NonNullTimestampConverter.dateTimeToTimestamp) DateTime get beginDate; @override - @JsonKey( - fromJson: TimestampConverter.timestampToDateTime, - toJson: TimestampConverter.dateTimeToTimestamp) + @JsonKey(fromJson: TimestampConverter.timestampToDateTime, toJson: TimestampConverter.dateTimeToTimestamp) DateTime? get endDate; @override - @JsonKey( - fromJson: NonNullTimestampConverter.timestampToDateTime, - toJson: NonNullTimestampConverter.dateTimeToTimestamp) + @JsonKey(fromJson: NonNullTimestampConverter.timestampToDateTime, toJson: NonNullTimestampConverter.dateTimeToTimestamp) DateTime get createdDate; @override @JsonKey(ignore: true) - _$$RestDurationImplCopyWith<_$RestDurationImpl> get copyWith => - throw _privateConstructorUsedError; + _$$RestDurationImplCopyWith<_$RestDurationImpl> get copyWith => throw _privateConstructorUsedError; } PillSheet _$PillSheetFromJson(Map json) { @@ -503,56 +407,33 @@ mixin _$PillSheet { String? get id => throw _privateConstructorUsedError; @JsonKey() PillSheetTypeInfo get typeInfo => throw _privateConstructorUsedError; - @JsonKey( - fromJson: NonNullTimestampConverter.timestampToDateTime, - toJson: NonNullTimestampConverter.dateTimeToTimestamp) - DateTime get beginingDate => - throw _privateConstructorUsedError; // NOTE: [SyncData:Widget] このプロパティはWidgetに同期されてる - @JsonKey( - fromJson: TimestampConverter.timestampToDateTime, - toJson: TimestampConverter.dateTimeToTimestamp) + @JsonKey(fromJson: NonNullTimestampConverter.timestampToDateTime, toJson: NonNullTimestampConverter.dateTimeToTimestamp) + DateTime get beginingDate => throw _privateConstructorUsedError; // NOTE: [SyncData:Widget] このプロパティはWidgetに同期されてる + @JsonKey(fromJson: TimestampConverter.timestampToDateTime, toJson: TimestampConverter.dateTimeToTimestamp) DateTime? get lastTakenDate => throw _privateConstructorUsedError; - @JsonKey( - fromJson: TimestampConverter.timestampToDateTime, - toJson: TimestampConverter.dateTimeToTimestamp) + @JsonKey(fromJson: TimestampConverter.timestampToDateTime, toJson: TimestampConverter.dateTimeToTimestamp) DateTime? get createdAt => throw _privateConstructorUsedError; - @JsonKey( - fromJson: TimestampConverter.timestampToDateTime, - toJson: TimestampConverter.dateTimeToTimestamp) + @JsonKey(fromJson: TimestampConverter.timestampToDateTime, toJson: TimestampConverter.dateTimeToTimestamp) DateTime? get deletedAt => throw _privateConstructorUsedError; int get groupIndex => throw _privateConstructorUsedError; List get restDurations => throw _privateConstructorUsedError; Map toJson() => throw _privateConstructorUsedError; @JsonKey(ignore: true) - $PillSheetCopyWith get copyWith => - throw _privateConstructorUsedError; + $PillSheetCopyWith get copyWith => throw _privateConstructorUsedError; } /// @nodoc abstract class $PillSheetCopyWith<$Res> { - factory $PillSheetCopyWith(PillSheet value, $Res Function(PillSheet) then) = - _$PillSheetCopyWithImpl<$Res, PillSheet>; + factory $PillSheetCopyWith(PillSheet value, $Res Function(PillSheet) then) = _$PillSheetCopyWithImpl<$Res, PillSheet>; @useResult $Res call( {@JsonKey(includeIfNull: false) String? id, @JsonKey() PillSheetTypeInfo typeInfo, - @JsonKey( - fromJson: NonNullTimestampConverter.timestampToDateTime, - toJson: NonNullTimestampConverter.dateTimeToTimestamp) - DateTime beginingDate, - @JsonKey( - fromJson: TimestampConverter.timestampToDateTime, - toJson: TimestampConverter.dateTimeToTimestamp) - DateTime? lastTakenDate, - @JsonKey( - fromJson: TimestampConverter.timestampToDateTime, - toJson: TimestampConverter.dateTimeToTimestamp) - DateTime? createdAt, - @JsonKey( - fromJson: TimestampConverter.timestampToDateTime, - toJson: TimestampConverter.dateTimeToTimestamp) - DateTime? deletedAt, + @JsonKey(fromJson: NonNullTimestampConverter.timestampToDateTime, toJson: NonNullTimestampConverter.dateTimeToTimestamp) DateTime beginingDate, + @JsonKey(fromJson: TimestampConverter.timestampToDateTime, toJson: TimestampConverter.dateTimeToTimestamp) DateTime? lastTakenDate, + @JsonKey(fromJson: TimestampConverter.timestampToDateTime, toJson: TimestampConverter.dateTimeToTimestamp) DateTime? createdAt, + @JsonKey(fromJson: TimestampConverter.timestampToDateTime, toJson: TimestampConverter.dateTimeToTimestamp) DateTime? deletedAt, int groupIndex, List restDurations}); @@ -560,8 +441,7 @@ abstract class $PillSheetCopyWith<$Res> { } /// @nodoc -class _$PillSheetCopyWithImpl<$Res, $Val extends PillSheet> - implements $PillSheetCopyWith<$Res> { +class _$PillSheetCopyWithImpl<$Res, $Val extends PillSheet> implements $PillSheetCopyWith<$Res> { _$PillSheetCopyWithImpl(this._value, this._then); // ignore: unused_field @@ -627,32 +507,17 @@ class _$PillSheetCopyWithImpl<$Res, $Val extends PillSheet> } /// @nodoc -abstract class _$$PillSheetImplCopyWith<$Res> - implements $PillSheetCopyWith<$Res> { - factory _$$PillSheetImplCopyWith( - _$PillSheetImpl value, $Res Function(_$PillSheetImpl) then) = - __$$PillSheetImplCopyWithImpl<$Res>; +abstract class _$$PillSheetImplCopyWith<$Res> implements $PillSheetCopyWith<$Res> { + factory _$$PillSheetImplCopyWith(_$PillSheetImpl value, $Res Function(_$PillSheetImpl) then) = __$$PillSheetImplCopyWithImpl<$Res>; @override @useResult $Res call( {@JsonKey(includeIfNull: false) String? id, @JsonKey() PillSheetTypeInfo typeInfo, - @JsonKey( - fromJson: NonNullTimestampConverter.timestampToDateTime, - toJson: NonNullTimestampConverter.dateTimeToTimestamp) - DateTime beginingDate, - @JsonKey( - fromJson: TimestampConverter.timestampToDateTime, - toJson: TimestampConverter.dateTimeToTimestamp) - DateTime? lastTakenDate, - @JsonKey( - fromJson: TimestampConverter.timestampToDateTime, - toJson: TimestampConverter.dateTimeToTimestamp) - DateTime? createdAt, - @JsonKey( - fromJson: TimestampConverter.timestampToDateTime, - toJson: TimestampConverter.dateTimeToTimestamp) - DateTime? deletedAt, + @JsonKey(fromJson: NonNullTimestampConverter.timestampToDateTime, toJson: NonNullTimestampConverter.dateTimeToTimestamp) DateTime beginingDate, + @JsonKey(fromJson: TimestampConverter.timestampToDateTime, toJson: TimestampConverter.dateTimeToTimestamp) DateTime? lastTakenDate, + @JsonKey(fromJson: TimestampConverter.timestampToDateTime, toJson: TimestampConverter.dateTimeToTimestamp) DateTime? createdAt, + @JsonKey(fromJson: TimestampConverter.timestampToDateTime, toJson: TimestampConverter.dateTimeToTimestamp) DateTime? deletedAt, int groupIndex, List restDurations}); @@ -661,12 +526,8 @@ abstract class _$$PillSheetImplCopyWith<$Res> } /// @nodoc -class __$$PillSheetImplCopyWithImpl<$Res> - extends _$PillSheetCopyWithImpl<$Res, _$PillSheetImpl> - implements _$$PillSheetImplCopyWith<$Res> { - __$$PillSheetImplCopyWithImpl( - _$PillSheetImpl _value, $Res Function(_$PillSheetImpl) _then) - : super(_value, _then); +class __$$PillSheetImplCopyWithImpl<$Res> extends _$PillSheetCopyWithImpl<$Res, _$PillSheetImpl> implements _$$PillSheetImplCopyWith<$Res> { + __$$PillSheetImplCopyWithImpl(_$PillSheetImpl _value, $Res Function(_$PillSheetImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @override @@ -724,29 +585,17 @@ class _$PillSheetImpl extends _PillSheet { _$PillSheetImpl( {@JsonKey(includeIfNull: false) required this.id, @JsonKey() required this.typeInfo, - @JsonKey( - fromJson: NonNullTimestampConverter.timestampToDateTime, - toJson: NonNullTimestampConverter.dateTimeToTimestamp) + @JsonKey(fromJson: NonNullTimestampConverter.timestampToDateTime, toJson: NonNullTimestampConverter.dateTimeToTimestamp) required this.beginingDate, - @JsonKey( - fromJson: TimestampConverter.timestampToDateTime, - toJson: TimestampConverter.dateTimeToTimestamp) - required this.lastTakenDate, - @JsonKey( - fromJson: TimestampConverter.timestampToDateTime, - toJson: TimestampConverter.dateTimeToTimestamp) - required this.createdAt, - @JsonKey( - fromJson: TimestampConverter.timestampToDateTime, - toJson: TimestampConverter.dateTimeToTimestamp) - this.deletedAt, + @JsonKey(fromJson: TimestampConverter.timestampToDateTime, toJson: TimestampConverter.dateTimeToTimestamp) required this.lastTakenDate, + @JsonKey(fromJson: TimestampConverter.timestampToDateTime, toJson: TimestampConverter.dateTimeToTimestamp) required this.createdAt, + @JsonKey(fromJson: TimestampConverter.timestampToDateTime, toJson: TimestampConverter.dateTimeToTimestamp) this.deletedAt, this.groupIndex = 0, final List restDurations = const []}) : _restDurations = restDurations, super._(); - factory _$PillSheetImpl.fromJson(Map json) => - _$$PillSheetImplFromJson(json); + factory _$PillSheetImpl.fromJson(Map json) => _$$PillSheetImplFromJson(json); @override @JsonKey(includeIfNull: false) @@ -755,25 +604,17 @@ class _$PillSheetImpl extends _PillSheet { @JsonKey() final PillSheetTypeInfo typeInfo; @override - @JsonKey( - fromJson: NonNullTimestampConverter.timestampToDateTime, - toJson: NonNullTimestampConverter.dateTimeToTimestamp) + @JsonKey(fromJson: NonNullTimestampConverter.timestampToDateTime, toJson: NonNullTimestampConverter.dateTimeToTimestamp) final DateTime beginingDate; // NOTE: [SyncData:Widget] このプロパティはWidgetに同期されてる @override - @JsonKey( - fromJson: TimestampConverter.timestampToDateTime, - toJson: TimestampConverter.dateTimeToTimestamp) + @JsonKey(fromJson: TimestampConverter.timestampToDateTime, toJson: TimestampConverter.dateTimeToTimestamp) final DateTime? lastTakenDate; @override - @JsonKey( - fromJson: TimestampConverter.timestampToDateTime, - toJson: TimestampConverter.dateTimeToTimestamp) + @JsonKey(fromJson: TimestampConverter.timestampToDateTime, toJson: TimestampConverter.dateTimeToTimestamp) final DateTime? createdAt; @override - @JsonKey( - fromJson: TimestampConverter.timestampToDateTime, - toJson: TimestampConverter.dateTimeToTimestamp) + @JsonKey(fromJson: TimestampConverter.timestampToDateTime, toJson: TimestampConverter.dateTimeToTimestamp) final DateTime? deletedAt; @override @JsonKey() @@ -798,40 +639,24 @@ class _$PillSheetImpl extends _PillSheet { (other.runtimeType == runtimeType && other is _$PillSheetImpl && (identical(other.id, id) || other.id == id) && - (identical(other.typeInfo, typeInfo) || - other.typeInfo == typeInfo) && - (identical(other.beginingDate, beginingDate) || - other.beginingDate == beginingDate) && - (identical(other.lastTakenDate, lastTakenDate) || - other.lastTakenDate == lastTakenDate) && - (identical(other.createdAt, createdAt) || - other.createdAt == createdAt) && - (identical(other.deletedAt, deletedAt) || - other.deletedAt == deletedAt) && - (identical(other.groupIndex, groupIndex) || - other.groupIndex == groupIndex) && - const DeepCollectionEquality() - .equals(other._restDurations, _restDurations)); + (identical(other.typeInfo, typeInfo) || other.typeInfo == typeInfo) && + (identical(other.beginingDate, beginingDate) || other.beginingDate == beginingDate) && + (identical(other.lastTakenDate, lastTakenDate) || other.lastTakenDate == lastTakenDate) && + (identical(other.createdAt, createdAt) || other.createdAt == createdAt) && + (identical(other.deletedAt, deletedAt) || other.deletedAt == deletedAt) && + (identical(other.groupIndex, groupIndex) || other.groupIndex == groupIndex) && + const DeepCollectionEquality().equals(other._restDurations, _restDurations)); } @JsonKey(ignore: true) @override int get hashCode => Object.hash( - runtimeType, - id, - typeInfo, - beginingDate, - lastTakenDate, - createdAt, - deletedAt, - groupIndex, - const DeepCollectionEquality().hash(_restDurations)); + runtimeType, id, typeInfo, beginingDate, lastTakenDate, createdAt, deletedAt, groupIndex, const DeepCollectionEquality().hash(_restDurations)); @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$PillSheetImplCopyWith<_$PillSheetImpl> get copyWith => - __$$PillSheetImplCopyWithImpl<_$PillSheetImpl>(this, _$identity); + _$$PillSheetImplCopyWith<_$PillSheetImpl> get copyWith => __$$PillSheetImplCopyWithImpl<_$PillSheetImpl>(this, _$identity); @override Map toJson() { @@ -845,28 +670,17 @@ abstract class _PillSheet extends PillSheet { factory _PillSheet( {@JsonKey(includeIfNull: false) required final String? id, @JsonKey() required final PillSheetTypeInfo typeInfo, - @JsonKey( - fromJson: NonNullTimestampConverter.timestampToDateTime, - toJson: NonNullTimestampConverter.dateTimeToTimestamp) + @JsonKey(fromJson: NonNullTimestampConverter.timestampToDateTime, toJson: NonNullTimestampConverter.dateTimeToTimestamp) required final DateTime beginingDate, - @JsonKey( - fromJson: TimestampConverter.timestampToDateTime, - toJson: TimestampConverter.dateTimeToTimestamp) + @JsonKey(fromJson: TimestampConverter.timestampToDateTime, toJson: TimestampConverter.dateTimeToTimestamp) required final DateTime? lastTakenDate, - @JsonKey( - fromJson: TimestampConverter.timestampToDateTime, - toJson: TimestampConverter.dateTimeToTimestamp) - required final DateTime? createdAt, - @JsonKey( - fromJson: TimestampConverter.timestampToDateTime, - toJson: TimestampConverter.dateTimeToTimestamp) - final DateTime? deletedAt, + @JsonKey(fromJson: TimestampConverter.timestampToDateTime, toJson: TimestampConverter.dateTimeToTimestamp) required final DateTime? createdAt, + @JsonKey(fromJson: TimestampConverter.timestampToDateTime, toJson: TimestampConverter.dateTimeToTimestamp) final DateTime? deletedAt, final int groupIndex, final List restDurations}) = _$PillSheetImpl; _PillSheet._() : super._(); - factory _PillSheet.fromJson(Map json) = - _$PillSheetImpl.fromJson; + factory _PillSheet.fromJson(Map json) = _$PillSheetImpl.fromJson; @override @JsonKey(includeIfNull: false) @@ -875,24 +689,16 @@ abstract class _PillSheet extends PillSheet { @JsonKey() PillSheetTypeInfo get typeInfo; @override - @JsonKey( - fromJson: NonNullTimestampConverter.timestampToDateTime, - toJson: NonNullTimestampConverter.dateTimeToTimestamp) + @JsonKey(fromJson: NonNullTimestampConverter.timestampToDateTime, toJson: NonNullTimestampConverter.dateTimeToTimestamp) DateTime get beginingDate; @override // NOTE: [SyncData:Widget] このプロパティはWidgetに同期されてる - @JsonKey( - fromJson: TimestampConverter.timestampToDateTime, - toJson: TimestampConverter.dateTimeToTimestamp) + @JsonKey(fromJson: TimestampConverter.timestampToDateTime, toJson: TimestampConverter.dateTimeToTimestamp) DateTime? get lastTakenDate; @override - @JsonKey( - fromJson: TimestampConverter.timestampToDateTime, - toJson: TimestampConverter.dateTimeToTimestamp) + @JsonKey(fromJson: TimestampConverter.timestampToDateTime, toJson: TimestampConverter.dateTimeToTimestamp) DateTime? get createdAt; @override - @JsonKey( - fromJson: TimestampConverter.timestampToDateTime, - toJson: TimestampConverter.dateTimeToTimestamp) + @JsonKey(fromJson: TimestampConverter.timestampToDateTime, toJson: TimestampConverter.dateTimeToTimestamp) DateTime? get deletedAt; @override int get groupIndex; @@ -900,6 +706,5 @@ abstract class _PillSheet extends PillSheet { List get restDurations; @override @JsonKey(ignore: true) - _$$PillSheetImplCopyWith<_$PillSheetImpl> get copyWith => - throw _privateConstructorUsedError; + _$$PillSheetImplCopyWith<_$PillSheetImpl> get copyWith => throw _privateConstructorUsedError; } diff --git a/lib/entity/pill_sheet.codegen.g.dart b/lib/entity/pill_sheet.codegen.g.dart index 008e93255e..0f5e41b751 100644 --- a/lib/entity/pill_sheet.codegen.g.dart +++ b/lib/entity/pill_sheet.codegen.g.dart @@ -6,63 +6,43 @@ part of 'pill_sheet.codegen.dart'; // JsonSerializableGenerator // ************************************************************************** -_$PillSheetTypeInfoImpl _$$PillSheetTypeInfoImplFromJson( - Map json) => - _$PillSheetTypeInfoImpl( +_$PillSheetTypeInfoImpl _$$PillSheetTypeInfoImplFromJson(Map json) => _$PillSheetTypeInfoImpl( pillSheetTypeReferencePath: json['pillSheetTypeReferencePath'] as String, name: json['name'] as String, totalCount: (json['totalCount'] as num).toInt(), dosingPeriod: (json['dosingPeriod'] as num).toInt(), ); -Map _$$PillSheetTypeInfoImplToJson( - _$PillSheetTypeInfoImpl instance) => - { +Map _$$PillSheetTypeInfoImplToJson(_$PillSheetTypeInfoImpl instance) => { 'pillSheetTypeReferencePath': instance.pillSheetTypeReferencePath, 'name': instance.name, 'totalCount': instance.totalCount, 'dosingPeriod': instance.dosingPeriod, }; -_$RestDurationImpl _$$RestDurationImplFromJson(Map json) => - _$RestDurationImpl( +_$RestDurationImpl _$$RestDurationImplFromJson(Map json) => _$RestDurationImpl( id: json['id'] as String?, - beginDate: NonNullTimestampConverter.timestampToDateTime( - json['beginDate'] as Timestamp), - endDate: - TimestampConverter.timestampToDateTime(json['endDate'] as Timestamp?), - createdDate: NonNullTimestampConverter.timestampToDateTime( - json['createdDate'] as Timestamp), + beginDate: NonNullTimestampConverter.timestampToDateTime(json['beginDate'] as Timestamp), + endDate: TimestampConverter.timestampToDateTime(json['endDate'] as Timestamp?), + createdDate: NonNullTimestampConverter.timestampToDateTime(json['createdDate'] as Timestamp), ); -Map _$$RestDurationImplToJson(_$RestDurationImpl instance) => - { +Map _$$RestDurationImplToJson(_$RestDurationImpl instance) => { 'id': instance.id, - 'beginDate': - NonNullTimestampConverter.dateTimeToTimestamp(instance.beginDate), + 'beginDate': NonNullTimestampConverter.dateTimeToTimestamp(instance.beginDate), 'endDate': TimestampConverter.dateTimeToTimestamp(instance.endDate), - 'createdDate': - NonNullTimestampConverter.dateTimeToTimestamp(instance.createdDate), + 'createdDate': NonNullTimestampConverter.dateTimeToTimestamp(instance.createdDate), }; -_$PillSheetImpl _$$PillSheetImplFromJson(Map json) => - _$PillSheetImpl( +_$PillSheetImpl _$$PillSheetImplFromJson(Map json) => _$PillSheetImpl( id: json['id'] as String?, - typeInfo: - PillSheetTypeInfo.fromJson(json['typeInfo'] as Map), - beginingDate: NonNullTimestampConverter.timestampToDateTime( - json['beginingDate'] as Timestamp), - lastTakenDate: TimestampConverter.timestampToDateTime( - json['lastTakenDate'] as Timestamp?), - createdAt: TimestampConverter.timestampToDateTime( - json['createdAt'] as Timestamp?), - deletedAt: TimestampConverter.timestampToDateTime( - json['deletedAt'] as Timestamp?), + typeInfo: PillSheetTypeInfo.fromJson(json['typeInfo'] as Map), + beginingDate: NonNullTimestampConverter.timestampToDateTime(json['beginingDate'] as Timestamp), + lastTakenDate: TimestampConverter.timestampToDateTime(json['lastTakenDate'] as Timestamp?), + createdAt: TimestampConverter.timestampToDateTime(json['createdAt'] as Timestamp?), + deletedAt: TimestampConverter.timestampToDateTime(json['deletedAt'] as Timestamp?), groupIndex: (json['groupIndex'] as num?)?.toInt() ?? 0, - restDurations: (json['restDurations'] as List?) - ?.map((e) => RestDuration.fromJson(e as Map)) - .toList() ?? - const [], + restDurations: (json['restDurations'] as List?)?.map((e) => RestDuration.fromJson(e as Map)).toList() ?? const [], ); Map _$$PillSheetImplToJson(_$PillSheetImpl instance) { @@ -76,10 +56,8 @@ Map _$$PillSheetImplToJson(_$PillSheetImpl instance) { writeNotNull('id', instance.id); val['typeInfo'] = instance.typeInfo.toJson(); - val['beginingDate'] = - NonNullTimestampConverter.dateTimeToTimestamp(instance.beginingDate); - val['lastTakenDate'] = - TimestampConverter.dateTimeToTimestamp(instance.lastTakenDate); + val['beginingDate'] = NonNullTimestampConverter.dateTimeToTimestamp(instance.beginingDate); + val['lastTakenDate'] = TimestampConverter.dateTimeToTimestamp(instance.lastTakenDate); val['createdAt'] = TimestampConverter.dateTimeToTimestamp(instance.createdAt); val['deletedAt'] = TimestampConverter.dateTimeToTimestamp(instance.deletedAt); val['groupIndex'] = instance.groupIndex; diff --git a/lib/entity/pill_sheet_group.codegen.freezed.dart b/lib/entity/pill_sheet_group.codegen.freezed.dart index 1fb05ad125..ef7dcf5feb 100644 --- a/lib/entity/pill_sheet_group.codegen.freezed.dart +++ b/lib/entity/pill_sheet_group.codegen.freezed.dart @@ -24,44 +24,28 @@ mixin _$PillSheetGroup { String? get id => throw _privateConstructorUsedError; List get pillSheetIDs => throw _privateConstructorUsedError; List get pillSheets => throw _privateConstructorUsedError; - @JsonKey( - fromJson: NonNullTimestampConverter.timestampToDateTime, - toJson: NonNullTimestampConverter.dateTimeToTimestamp) + @JsonKey(fromJson: NonNullTimestampConverter.timestampToDateTime, toJson: NonNullTimestampConverter.dateTimeToTimestamp) DateTime get createdAt => throw _privateConstructorUsedError; - @JsonKey( - fromJson: TimestampConverter.timestampToDateTime, - toJson: TimestampConverter.dateTimeToTimestamp) - DateTime? get deletedAt => - throw _privateConstructorUsedError; // NOTE: [SyncData:Widget] このプロパティはWidgetに同期されてる - PillSheetGroupDisplayNumberSetting? get displayNumberSetting => - throw _privateConstructorUsedError; - PillSheetAppearanceMode get pillSheetAppearanceMode => - throw _privateConstructorUsedError; + @JsonKey(fromJson: TimestampConverter.timestampToDateTime, toJson: TimestampConverter.dateTimeToTimestamp) + DateTime? get deletedAt => throw _privateConstructorUsedError; // NOTE: [SyncData:Widget] このプロパティはWidgetに同期されてる + PillSheetGroupDisplayNumberSetting? get displayNumberSetting => throw _privateConstructorUsedError; + PillSheetAppearanceMode get pillSheetAppearanceMode => throw _privateConstructorUsedError; Map toJson() => throw _privateConstructorUsedError; @JsonKey(ignore: true) - $PillSheetGroupCopyWith get copyWith => - throw _privateConstructorUsedError; + $PillSheetGroupCopyWith get copyWith => throw _privateConstructorUsedError; } /// @nodoc abstract class $PillSheetGroupCopyWith<$Res> { - factory $PillSheetGroupCopyWith( - PillSheetGroup value, $Res Function(PillSheetGroup) then) = - _$PillSheetGroupCopyWithImpl<$Res, PillSheetGroup>; + factory $PillSheetGroupCopyWith(PillSheetGroup value, $Res Function(PillSheetGroup) then) = _$PillSheetGroupCopyWithImpl<$Res, PillSheetGroup>; @useResult $Res call( {@JsonKey(includeIfNull: false) String? id, List pillSheetIDs, List pillSheets, - @JsonKey( - fromJson: NonNullTimestampConverter.timestampToDateTime, - toJson: NonNullTimestampConverter.dateTimeToTimestamp) - DateTime createdAt, - @JsonKey( - fromJson: TimestampConverter.timestampToDateTime, - toJson: TimestampConverter.dateTimeToTimestamp) - DateTime? deletedAt, + @JsonKey(fromJson: NonNullTimestampConverter.timestampToDateTime, toJson: NonNullTimestampConverter.dateTimeToTimestamp) DateTime createdAt, + @JsonKey(fromJson: TimestampConverter.timestampToDateTime, toJson: TimestampConverter.dateTimeToTimestamp) DateTime? deletedAt, PillSheetGroupDisplayNumberSetting? displayNumberSetting, PillSheetAppearanceMode pillSheetAppearanceMode}); @@ -69,8 +53,7 @@ abstract class $PillSheetGroupCopyWith<$Res> { } /// @nodoc -class _$PillSheetGroupCopyWithImpl<$Res, $Val extends PillSheetGroup> - implements $PillSheetGroupCopyWith<$Res> { +class _$PillSheetGroupCopyWithImpl<$Res, $Val extends PillSheetGroup> implements $PillSheetGroupCopyWith<$Res> { _$PillSheetGroupCopyWithImpl(this._value, this._then); // ignore: unused_field @@ -128,18 +111,15 @@ class _$PillSheetGroupCopyWithImpl<$Res, $Val extends PillSheetGroup> return null; } - return $PillSheetGroupDisplayNumberSettingCopyWith<$Res>( - _value.displayNumberSetting!, (value) { + return $PillSheetGroupDisplayNumberSettingCopyWith<$Res>(_value.displayNumberSetting!, (value) { return _then(_value.copyWith(displayNumberSetting: value) as $Val); }); } } /// @nodoc -abstract class _$$PillSheetGroupImplCopyWith<$Res> - implements $PillSheetGroupCopyWith<$Res> { - factory _$$PillSheetGroupImplCopyWith(_$PillSheetGroupImpl value, - $Res Function(_$PillSheetGroupImpl) then) = +abstract class _$$PillSheetGroupImplCopyWith<$Res> implements $PillSheetGroupCopyWith<$Res> { + factory _$$PillSheetGroupImplCopyWith(_$PillSheetGroupImpl value, $Res Function(_$PillSheetGroupImpl) then) = __$$PillSheetGroupImplCopyWithImpl<$Res>; @override @useResult @@ -147,14 +127,8 @@ abstract class _$$PillSheetGroupImplCopyWith<$Res> {@JsonKey(includeIfNull: false) String? id, List pillSheetIDs, List pillSheets, - @JsonKey( - fromJson: NonNullTimestampConverter.timestampToDateTime, - toJson: NonNullTimestampConverter.dateTimeToTimestamp) - DateTime createdAt, - @JsonKey( - fromJson: TimestampConverter.timestampToDateTime, - toJson: TimestampConverter.dateTimeToTimestamp) - DateTime? deletedAt, + @JsonKey(fromJson: NonNullTimestampConverter.timestampToDateTime, toJson: NonNullTimestampConverter.dateTimeToTimestamp) DateTime createdAt, + @JsonKey(fromJson: TimestampConverter.timestampToDateTime, toJson: TimestampConverter.dateTimeToTimestamp) DateTime? deletedAt, PillSheetGroupDisplayNumberSetting? displayNumberSetting, PillSheetAppearanceMode pillSheetAppearanceMode}); @@ -163,12 +137,9 @@ abstract class _$$PillSheetGroupImplCopyWith<$Res> } /// @nodoc -class __$$PillSheetGroupImplCopyWithImpl<$Res> - extends _$PillSheetGroupCopyWithImpl<$Res, _$PillSheetGroupImpl> +class __$$PillSheetGroupImplCopyWithImpl<$Res> extends _$PillSheetGroupCopyWithImpl<$Res, _$PillSheetGroupImpl> implements _$$PillSheetGroupImplCopyWith<$Res> { - __$$PillSheetGroupImplCopyWithImpl( - _$PillSheetGroupImpl _value, $Res Function(_$PillSheetGroupImpl) _then) - : super(_value, _then); + __$$PillSheetGroupImplCopyWithImpl(_$PillSheetGroupImpl _value, $Res Function(_$PillSheetGroupImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @override @@ -222,22 +193,16 @@ class _$PillSheetGroupImpl extends _PillSheetGroup { {@JsonKey(includeIfNull: false) this.id, required final List pillSheetIDs, required final List pillSheets, - @JsonKey( - fromJson: NonNullTimestampConverter.timestampToDateTime, - toJson: NonNullTimestampConverter.dateTimeToTimestamp) + @JsonKey(fromJson: NonNullTimestampConverter.timestampToDateTime, toJson: NonNullTimestampConverter.dateTimeToTimestamp) required this.createdAt, - @JsonKey( - fromJson: TimestampConverter.timestampToDateTime, - toJson: TimestampConverter.dateTimeToTimestamp) - this.deletedAt, + @JsonKey(fromJson: TimestampConverter.timestampToDateTime, toJson: TimestampConverter.dateTimeToTimestamp) this.deletedAt, this.displayNumberSetting, this.pillSheetAppearanceMode = PillSheetAppearanceMode.number}) : _pillSheetIDs = pillSheetIDs, _pillSheets = pillSheets, super._(); - factory _$PillSheetGroupImpl.fromJson(Map json) => - _$$PillSheetGroupImplFromJson(json); + factory _$PillSheetGroupImpl.fromJson(Map json) => _$$PillSheetGroupImplFromJson(json); @override @JsonKey(includeIfNull: false) @@ -259,14 +224,10 @@ class _$PillSheetGroupImpl extends _PillSheetGroup { } @override - @JsonKey( - fromJson: NonNullTimestampConverter.timestampToDateTime, - toJson: NonNullTimestampConverter.dateTimeToTimestamp) + @JsonKey(fromJson: NonNullTimestampConverter.timestampToDateTime, toJson: NonNullTimestampConverter.dateTimeToTimestamp) final DateTime createdAt; @override - @JsonKey( - fromJson: TimestampConverter.timestampToDateTime, - toJson: TimestampConverter.dateTimeToTimestamp) + @JsonKey(fromJson: TimestampConverter.timestampToDateTime, toJson: TimestampConverter.dateTimeToTimestamp) final DateTime? deletedAt; // NOTE: [SyncData:Widget] このプロパティはWidgetに同期されてる @override @@ -286,39 +247,23 @@ class _$PillSheetGroupImpl extends _PillSheetGroup { (other.runtimeType == runtimeType && other is _$PillSheetGroupImpl && (identical(other.id, id) || other.id == id) && - const DeepCollectionEquality() - .equals(other._pillSheetIDs, _pillSheetIDs) && - const DeepCollectionEquality() - .equals(other._pillSheets, _pillSheets) && - (identical(other.createdAt, createdAt) || - other.createdAt == createdAt) && - (identical(other.deletedAt, deletedAt) || - other.deletedAt == deletedAt) && - (identical(other.displayNumberSetting, displayNumberSetting) || - other.displayNumberSetting == displayNumberSetting) && - (identical( - other.pillSheetAppearanceMode, pillSheetAppearanceMode) || - other.pillSheetAppearanceMode == pillSheetAppearanceMode)); + const DeepCollectionEquality().equals(other._pillSheetIDs, _pillSheetIDs) && + const DeepCollectionEquality().equals(other._pillSheets, _pillSheets) && + (identical(other.createdAt, createdAt) || other.createdAt == createdAt) && + (identical(other.deletedAt, deletedAt) || other.deletedAt == deletedAt) && + (identical(other.displayNumberSetting, displayNumberSetting) || other.displayNumberSetting == displayNumberSetting) && + (identical(other.pillSheetAppearanceMode, pillSheetAppearanceMode) || other.pillSheetAppearanceMode == pillSheetAppearanceMode)); } @JsonKey(ignore: true) @override - int get hashCode => Object.hash( - runtimeType, - id, - const DeepCollectionEquality().hash(_pillSheetIDs), - const DeepCollectionEquality().hash(_pillSheets), - createdAt, - deletedAt, - displayNumberSetting, - pillSheetAppearanceMode); + int get hashCode => Object.hash(runtimeType, id, const DeepCollectionEquality().hash(_pillSheetIDs), + const DeepCollectionEquality().hash(_pillSheets), createdAt, deletedAt, displayNumberSetting, pillSheetAppearanceMode); @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$PillSheetGroupImplCopyWith<_$PillSheetGroupImpl> get copyWith => - __$$PillSheetGroupImplCopyWithImpl<_$PillSheetGroupImpl>( - this, _$identity); + _$$PillSheetGroupImplCopyWith<_$PillSheetGroupImpl> get copyWith => __$$PillSheetGroupImplCopyWithImpl<_$PillSheetGroupImpl>(this, _$identity); @override Map toJson() { @@ -330,24 +275,17 @@ class _$PillSheetGroupImpl extends _PillSheetGroup { abstract class _PillSheetGroup extends PillSheetGroup { factory _PillSheetGroup( - {@JsonKey(includeIfNull: false) final String? id, - required final List pillSheetIDs, - required final List pillSheets, - @JsonKey( - fromJson: NonNullTimestampConverter.timestampToDateTime, - toJson: NonNullTimestampConverter.dateTimeToTimestamp) - required final DateTime createdAt, - @JsonKey( - fromJson: TimestampConverter.timestampToDateTime, - toJson: TimestampConverter.dateTimeToTimestamp) - final DateTime? deletedAt, - final PillSheetGroupDisplayNumberSetting? displayNumberSetting, - final PillSheetAppearanceMode pillSheetAppearanceMode}) = - _$PillSheetGroupImpl; + {@JsonKey(includeIfNull: false) final String? id, + required final List pillSheetIDs, + required final List pillSheets, + @JsonKey(fromJson: NonNullTimestampConverter.timestampToDateTime, toJson: NonNullTimestampConverter.dateTimeToTimestamp) + required final DateTime createdAt, + @JsonKey(fromJson: TimestampConverter.timestampToDateTime, toJson: TimestampConverter.dateTimeToTimestamp) final DateTime? deletedAt, + final PillSheetGroupDisplayNumberSetting? displayNumberSetting, + final PillSheetAppearanceMode pillSheetAppearanceMode}) = _$PillSheetGroupImpl; _PillSheetGroup._() : super._(); - factory _PillSheetGroup.fromJson(Map json) = - _$PillSheetGroupImpl.fromJson; + factory _PillSheetGroup.fromJson(Map json) = _$PillSheetGroupImpl.fromJson; @override @JsonKey(includeIfNull: false) @@ -357,14 +295,10 @@ abstract class _PillSheetGroup extends PillSheetGroup { @override List get pillSheets; @override - @JsonKey( - fromJson: NonNullTimestampConverter.timestampToDateTime, - toJson: NonNullTimestampConverter.dateTimeToTimestamp) + @JsonKey(fromJson: NonNullTimestampConverter.timestampToDateTime, toJson: NonNullTimestampConverter.dateTimeToTimestamp) DateTime get createdAt; @override - @JsonKey( - fromJson: TimestampConverter.timestampToDateTime, - toJson: TimestampConverter.dateTimeToTimestamp) + @JsonKey(fromJson: TimestampConverter.timestampToDateTime, toJson: TimestampConverter.dateTimeToTimestamp) DateTime? get deletedAt; @override // NOTE: [SyncData:Widget] このプロパティはWidgetに同期されてる PillSheetGroupDisplayNumberSetting? get displayNumberSetting; @@ -372,8 +306,7 @@ abstract class _PillSheetGroup extends PillSheetGroup { PillSheetAppearanceMode get pillSheetAppearanceMode; @override @JsonKey(ignore: true) - _$$PillSheetGroupImplCopyWith<_$PillSheetGroupImpl> get copyWith => - throw _privateConstructorUsedError; + _$$PillSheetGroupImplCopyWith<_$PillSheetGroupImpl> get copyWith => throw _privateConstructorUsedError; } /// @nodoc @@ -383,18 +316,15 @@ mixin _$PillSheetGroupPillNumberDomainPillMarkValue { int get number => throw _privateConstructorUsedError; @JsonKey(ignore: true) - $PillSheetGroupPillNumberDomainPillMarkValueCopyWith< - PillSheetGroupPillNumberDomainPillMarkValue> - get copyWith => throw _privateConstructorUsedError; + $PillSheetGroupPillNumberDomainPillMarkValueCopyWith get copyWith => + throw _privateConstructorUsedError; } /// @nodoc abstract class $PillSheetGroupPillNumberDomainPillMarkValueCopyWith<$Res> { factory $PillSheetGroupPillNumberDomainPillMarkValueCopyWith( - PillSheetGroupPillNumberDomainPillMarkValue value, - $Res Function(PillSheetGroupPillNumberDomainPillMarkValue) then) = - _$PillSheetGroupPillNumberDomainPillMarkValueCopyWithImpl<$Res, - PillSheetGroupPillNumberDomainPillMarkValue>; + PillSheetGroupPillNumberDomainPillMarkValue value, $Res Function(PillSheetGroupPillNumberDomainPillMarkValue) then) = + _$PillSheetGroupPillNumberDomainPillMarkValueCopyWithImpl<$Res, PillSheetGroupPillNumberDomainPillMarkValue>; @useResult $Res call({PillSheet pillSheet, DateTime date, int number}); @@ -402,11 +332,9 @@ abstract class $PillSheetGroupPillNumberDomainPillMarkValueCopyWith<$Res> { } /// @nodoc -class _$PillSheetGroupPillNumberDomainPillMarkValueCopyWithImpl<$Res, - $Val extends PillSheetGroupPillNumberDomainPillMarkValue> +class _$PillSheetGroupPillNumberDomainPillMarkValueCopyWithImpl<$Res, $Val extends PillSheetGroupPillNumberDomainPillMarkValue> implements $PillSheetGroupPillNumberDomainPillMarkValueCopyWith<$Res> { - _$PillSheetGroupPillNumberDomainPillMarkValueCopyWithImpl( - this._value, this._then); + _$PillSheetGroupPillNumberDomainPillMarkValueCopyWithImpl(this._value, this._then); // ignore: unused_field final $Val _value; @@ -449,9 +377,7 @@ class _$PillSheetGroupPillNumberDomainPillMarkValueCopyWithImpl<$Res, abstract class _$$PillSheetGroupPillNumberDomainPillMarkValueImplCopyWith<$Res> implements $PillSheetGroupPillNumberDomainPillMarkValueCopyWith<$Res> { factory _$$PillSheetGroupPillNumberDomainPillMarkValueImplCopyWith( - _$PillSheetGroupPillNumberDomainPillMarkValueImpl value, - $Res Function(_$PillSheetGroupPillNumberDomainPillMarkValueImpl) - then) = + _$PillSheetGroupPillNumberDomainPillMarkValueImpl value, $Res Function(_$PillSheetGroupPillNumberDomainPillMarkValueImpl) then) = __$$PillSheetGroupPillNumberDomainPillMarkValueImplCopyWithImpl<$Res>; @override @useResult @@ -463,13 +389,10 @@ abstract class _$$PillSheetGroupPillNumberDomainPillMarkValueImplCopyWith<$Res> /// @nodoc class __$$PillSheetGroupPillNumberDomainPillMarkValueImplCopyWithImpl<$Res> - extends _$PillSheetGroupPillNumberDomainPillMarkValueCopyWithImpl<$Res, - _$PillSheetGroupPillNumberDomainPillMarkValueImpl> - implements - _$$PillSheetGroupPillNumberDomainPillMarkValueImplCopyWith<$Res> { + extends _$PillSheetGroupPillNumberDomainPillMarkValueCopyWithImpl<$Res, _$PillSheetGroupPillNumberDomainPillMarkValueImpl> + implements _$$PillSheetGroupPillNumberDomainPillMarkValueImplCopyWith<$Res> { __$$PillSheetGroupPillNumberDomainPillMarkValueImplCopyWithImpl( - _$PillSheetGroupPillNumberDomainPillMarkValueImpl _value, - $Res Function(_$PillSheetGroupPillNumberDomainPillMarkValueImpl) _then) + _$PillSheetGroupPillNumberDomainPillMarkValueImpl _value, $Res Function(_$PillSheetGroupPillNumberDomainPillMarkValueImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -498,10 +421,8 @@ class __$$PillSheetGroupPillNumberDomainPillMarkValueImplCopyWithImpl<$Res> /// @nodoc -class _$PillSheetGroupPillNumberDomainPillMarkValueImpl - implements _PillSheetGroupPillNumberDomainPillMarkValue { - const _$PillSheetGroupPillNumberDomainPillMarkValueImpl( - {required this.pillSheet, required this.date, required this.number}); +class _$PillSheetGroupPillNumberDomainPillMarkValueImpl implements _PillSheetGroupPillNumberDomainPillMarkValue { + const _$PillSheetGroupPillNumberDomainPillMarkValueImpl({required this.pillSheet, required this.date, required this.number}); @override final PillSheet pillSheet; @@ -520,8 +441,7 @@ class _$PillSheetGroupPillNumberDomainPillMarkValueImpl return identical(this, other) || (other.runtimeType == runtimeType && other is _$PillSheetGroupPillNumberDomainPillMarkValueImpl && - (identical(other.pillSheet, pillSheet) || - other.pillSheet == pillSheet) && + (identical(other.pillSheet, pillSheet) || other.pillSheet == pillSheet) && (identical(other.date, date) || other.date == date) && (identical(other.number, number) || other.number == number)); } @@ -532,21 +452,15 @@ class _$PillSheetGroupPillNumberDomainPillMarkValueImpl @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$PillSheetGroupPillNumberDomainPillMarkValueImplCopyWith< - _$PillSheetGroupPillNumberDomainPillMarkValueImpl> - get copyWith => - __$$PillSheetGroupPillNumberDomainPillMarkValueImplCopyWithImpl< - _$PillSheetGroupPillNumberDomainPillMarkValueImpl>( - this, _$identity); + _$$PillSheetGroupPillNumberDomainPillMarkValueImplCopyWith<_$PillSheetGroupPillNumberDomainPillMarkValueImpl> get copyWith => + __$$PillSheetGroupPillNumberDomainPillMarkValueImplCopyWithImpl<_$PillSheetGroupPillNumberDomainPillMarkValueImpl>(this, _$identity); } -abstract class _PillSheetGroupPillNumberDomainPillMarkValue - implements PillSheetGroupPillNumberDomainPillMarkValue { +abstract class _PillSheetGroupPillNumberDomainPillMarkValue implements PillSheetGroupPillNumberDomainPillMarkValue { const factory _PillSheetGroupPillNumberDomainPillMarkValue( - {required final PillSheet pillSheet, - required final DateTime date, - required final int number}) = - _$PillSheetGroupPillNumberDomainPillMarkValueImpl; + {required final PillSheet pillSheet, + required final DateTime date, + required final int number}) = _$PillSheetGroupPillNumberDomainPillMarkValueImpl; @override PillSheet get pillSheet; @@ -556,13 +470,11 @@ abstract class _PillSheetGroupPillNumberDomainPillMarkValue int get number; @override @JsonKey(ignore: true) - _$$PillSheetGroupPillNumberDomainPillMarkValueImplCopyWith< - _$PillSheetGroupPillNumberDomainPillMarkValueImpl> - get copyWith => throw _privateConstructorUsedError; + _$$PillSheetGroupPillNumberDomainPillMarkValueImplCopyWith<_$PillSheetGroupPillNumberDomainPillMarkValueImpl> get copyWith => + throw _privateConstructorUsedError; } -PillSheetGroupDisplayNumberSetting _$PillSheetGroupDisplayNumberSettingFromJson( - Map json) { +PillSheetGroupDisplayNumberSetting _$PillSheetGroupDisplayNumberSettingFromJson(Map json) { return _PillSheetGroupDisplayNumberSetting.fromJson(json); } @@ -573,25 +485,20 @@ mixin _$PillSheetGroupDisplayNumberSetting { Map toJson() => throw _privateConstructorUsedError; @JsonKey(ignore: true) - $PillSheetGroupDisplayNumberSettingCopyWith< - PillSheetGroupDisplayNumberSetting> - get copyWith => throw _privateConstructorUsedError; + $PillSheetGroupDisplayNumberSettingCopyWith get copyWith => throw _privateConstructorUsedError; } /// @nodoc abstract class $PillSheetGroupDisplayNumberSettingCopyWith<$Res> { factory $PillSheetGroupDisplayNumberSettingCopyWith( - PillSheetGroupDisplayNumberSetting value, - $Res Function(PillSheetGroupDisplayNumberSetting) then) = - _$PillSheetGroupDisplayNumberSettingCopyWithImpl<$Res, - PillSheetGroupDisplayNumberSetting>; + PillSheetGroupDisplayNumberSetting value, $Res Function(PillSheetGroupDisplayNumberSetting) then) = + _$PillSheetGroupDisplayNumberSettingCopyWithImpl<$Res, PillSheetGroupDisplayNumberSetting>; @useResult $Res call({int? beginPillNumber, int? endPillNumber}); } /// @nodoc -class _$PillSheetGroupDisplayNumberSettingCopyWithImpl<$Res, - $Val extends PillSheetGroupDisplayNumberSetting> +class _$PillSheetGroupDisplayNumberSettingCopyWithImpl<$Res, $Val extends PillSheetGroupDisplayNumberSetting> implements $PillSheetGroupDisplayNumberSettingCopyWith<$Res> { _$PillSheetGroupDisplayNumberSettingCopyWithImpl(this._value, this._then); @@ -620,11 +527,9 @@ class _$PillSheetGroupDisplayNumberSettingCopyWithImpl<$Res, } /// @nodoc -abstract class _$$PillSheetGroupDisplayNumberSettingImplCopyWith<$Res> - implements $PillSheetGroupDisplayNumberSettingCopyWith<$Res> { +abstract class _$$PillSheetGroupDisplayNumberSettingImplCopyWith<$Res> implements $PillSheetGroupDisplayNumberSettingCopyWith<$Res> { factory _$$PillSheetGroupDisplayNumberSettingImplCopyWith( - _$PillSheetGroupDisplayNumberSettingImpl value, - $Res Function(_$PillSheetGroupDisplayNumberSettingImpl) then) = + _$PillSheetGroupDisplayNumberSettingImpl value, $Res Function(_$PillSheetGroupDisplayNumberSettingImpl) then) = __$$PillSheetGroupDisplayNumberSettingImplCopyWithImpl<$Res>; @override @useResult @@ -633,12 +538,10 @@ abstract class _$$PillSheetGroupDisplayNumberSettingImplCopyWith<$Res> /// @nodoc class __$$PillSheetGroupDisplayNumberSettingImplCopyWithImpl<$Res> - extends _$PillSheetGroupDisplayNumberSettingCopyWithImpl<$Res, - _$PillSheetGroupDisplayNumberSettingImpl> + extends _$PillSheetGroupDisplayNumberSettingCopyWithImpl<$Res, _$PillSheetGroupDisplayNumberSettingImpl> implements _$$PillSheetGroupDisplayNumberSettingImplCopyWith<$Res> { __$$PillSheetGroupDisplayNumberSettingImplCopyWithImpl( - _$PillSheetGroupDisplayNumberSettingImpl _value, - $Res Function(_$PillSheetGroupDisplayNumberSettingImpl) _then) + _$PillSheetGroupDisplayNumberSettingImpl _value, $Res Function(_$PillSheetGroupDisplayNumberSettingImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -663,14 +566,10 @@ class __$$PillSheetGroupDisplayNumberSettingImplCopyWithImpl<$Res> /// @nodoc @JsonSerializable(explicitToJson: true) -class _$PillSheetGroupDisplayNumberSettingImpl - implements _PillSheetGroupDisplayNumberSetting { - const _$PillSheetGroupDisplayNumberSettingImpl( - {this.beginPillNumber, this.endPillNumber}); +class _$PillSheetGroupDisplayNumberSettingImpl implements _PillSheetGroupDisplayNumberSetting { + const _$PillSheetGroupDisplayNumberSettingImpl({this.beginPillNumber, this.endPillNumber}); - factory _$PillSheetGroupDisplayNumberSettingImpl.fromJson( - Map json) => - _$$PillSheetGroupDisplayNumberSettingImplFromJson(json); + factory _$PillSheetGroupDisplayNumberSettingImpl.fromJson(Map json) => _$$PillSheetGroupDisplayNumberSettingImplFromJson(json); @override final int? beginPillNumber; @@ -687,10 +586,8 @@ class _$PillSheetGroupDisplayNumberSettingImpl return identical(this, other) || (other.runtimeType == runtimeType && other is _$PillSheetGroupDisplayNumberSettingImpl && - (identical(other.beginPillNumber, beginPillNumber) || - other.beginPillNumber == beginPillNumber) && - (identical(other.endPillNumber, endPillNumber) || - other.endPillNumber == endPillNumber)); + (identical(other.beginPillNumber, beginPillNumber) || other.beginPillNumber == beginPillNumber) && + (identical(other.endPillNumber, endPillNumber) || other.endPillNumber == endPillNumber)); } @JsonKey(ignore: true) @@ -700,10 +597,8 @@ class _$PillSheetGroupDisplayNumberSettingImpl @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$PillSheetGroupDisplayNumberSettingImplCopyWith< - _$PillSheetGroupDisplayNumberSettingImpl> - get copyWith => __$$PillSheetGroupDisplayNumberSettingImplCopyWithImpl< - _$PillSheetGroupDisplayNumberSettingImpl>(this, _$identity); + _$$PillSheetGroupDisplayNumberSettingImplCopyWith<_$PillSheetGroupDisplayNumberSettingImpl> get copyWith => + __$$PillSheetGroupDisplayNumberSettingImplCopyWithImpl<_$PillSheetGroupDisplayNumberSettingImpl>(this, _$identity); @override Map toJson() { @@ -713,15 +608,11 @@ class _$PillSheetGroupDisplayNumberSettingImpl } } -abstract class _PillSheetGroupDisplayNumberSetting - implements PillSheetGroupDisplayNumberSetting { - const factory _PillSheetGroupDisplayNumberSetting( - {final int? beginPillNumber, - final int? endPillNumber}) = _$PillSheetGroupDisplayNumberSettingImpl; +abstract class _PillSheetGroupDisplayNumberSetting implements PillSheetGroupDisplayNumberSetting { + const factory _PillSheetGroupDisplayNumberSetting({final int? beginPillNumber, final int? endPillNumber}) = + _$PillSheetGroupDisplayNumberSettingImpl; - factory _PillSheetGroupDisplayNumberSetting.fromJson( - Map json) = - _$PillSheetGroupDisplayNumberSettingImpl.fromJson; + factory _PillSheetGroupDisplayNumberSetting.fromJson(Map json) = _$PillSheetGroupDisplayNumberSettingImpl.fromJson; @override int? get beginPillNumber; @@ -729,7 +620,5 @@ abstract class _PillSheetGroupDisplayNumberSetting int? get endPillNumber; @override @JsonKey(ignore: true) - _$$PillSheetGroupDisplayNumberSettingImplCopyWith< - _$PillSheetGroupDisplayNumberSettingImpl> - get copyWith => throw _privateConstructorUsedError; + _$$PillSheetGroupDisplayNumberSettingImplCopyWith<_$PillSheetGroupDisplayNumberSettingImpl> get copyWith => throw _privateConstructorUsedError; } diff --git a/lib/entity/pill_sheet_group.codegen.g.dart b/lib/entity/pill_sheet_group.codegen.g.dart index 45a46bf7ef..7a3d1076b3 100644 --- a/lib/entity/pill_sheet_group.codegen.g.dart +++ b/lib/entity/pill_sheet_group.codegen.g.dart @@ -6,31 +6,20 @@ part of 'pill_sheet_group.codegen.dart'; // JsonSerializableGenerator // ************************************************************************** -_$PillSheetGroupImpl _$$PillSheetGroupImplFromJson(Map json) => - _$PillSheetGroupImpl( +_$PillSheetGroupImpl _$$PillSheetGroupImplFromJson(Map json) => _$PillSheetGroupImpl( id: json['id'] as String?, - pillSheetIDs: (json['pillSheetIDs'] as List) - .map((e) => e as String) - .toList(), - pillSheets: (json['pillSheets'] as List) - .map((e) => PillSheet.fromJson(e as Map)) - .toList(), - createdAt: NonNullTimestampConverter.timestampToDateTime( - json['createdAt'] as Timestamp), - deletedAt: TimestampConverter.timestampToDateTime( - json['deletedAt'] as Timestamp?), + pillSheetIDs: (json['pillSheetIDs'] as List).map((e) => e as String).toList(), + pillSheets: (json['pillSheets'] as List).map((e) => PillSheet.fromJson(e as Map)).toList(), + createdAt: NonNullTimestampConverter.timestampToDateTime(json['createdAt'] as Timestamp), + deletedAt: TimestampConverter.timestampToDateTime(json['deletedAt'] as Timestamp?), displayNumberSetting: json['displayNumberSetting'] == null ? null - : PillSheetGroupDisplayNumberSetting.fromJson( - json['displayNumberSetting'] as Map), - pillSheetAppearanceMode: $enumDecodeNullable( - _$PillSheetAppearanceModeEnumMap, - json['pillSheetAppearanceMode']) ?? - PillSheetAppearanceMode.number, + : PillSheetGroupDisplayNumberSetting.fromJson(json['displayNumberSetting'] as Map), + pillSheetAppearanceMode: + $enumDecodeNullable(_$PillSheetAppearanceModeEnumMap, json['pillSheetAppearanceMode']) ?? PillSheetAppearanceMode.number, ); -Map _$$PillSheetGroupImplToJson( - _$PillSheetGroupImpl instance) { +Map _$$PillSheetGroupImplToJson(_$PillSheetGroupImpl instance) { final val = {}; void writeNotNull(String key, dynamic value) { @@ -42,12 +31,10 @@ Map _$$PillSheetGroupImplToJson( writeNotNull('id', instance.id); val['pillSheetIDs'] = instance.pillSheetIDs; val['pillSheets'] = instance.pillSheets.map((e) => e.toJson()).toList(); - val['createdAt'] = - NonNullTimestampConverter.dateTimeToTimestamp(instance.createdAt); + val['createdAt'] = NonNullTimestampConverter.dateTimeToTimestamp(instance.createdAt); val['deletedAt'] = TimestampConverter.dateTimeToTimestamp(instance.deletedAt); val['displayNumberSetting'] = instance.displayNumberSetting?.toJson(); - val['pillSheetAppearanceMode'] = - _$PillSheetAppearanceModeEnumMap[instance.pillSheetAppearanceMode]!; + val['pillSheetAppearanceMode'] = _$PillSheetAppearanceModeEnumMap[instance.pillSheetAppearanceMode]!; return val; } @@ -58,17 +45,13 @@ const _$PillSheetAppearanceModeEnumMap = { PillSheetAppearanceMode.cyclicSequential: 'cyclicSequential', }; -_$PillSheetGroupDisplayNumberSettingImpl - _$$PillSheetGroupDisplayNumberSettingImplFromJson( - Map json) => - _$PillSheetGroupDisplayNumberSettingImpl( - beginPillNumber: (json['beginPillNumber'] as num?)?.toInt(), - endPillNumber: (json['endPillNumber'] as num?)?.toInt(), - ); +_$PillSheetGroupDisplayNumberSettingImpl _$$PillSheetGroupDisplayNumberSettingImplFromJson(Map json) => + _$PillSheetGroupDisplayNumberSettingImpl( + beginPillNumber: (json['beginPillNumber'] as num?)?.toInt(), + endPillNumber: (json['endPillNumber'] as num?)?.toInt(), + ); -Map _$$PillSheetGroupDisplayNumberSettingImplToJson( - _$PillSheetGroupDisplayNumberSettingImpl instance) => - { +Map _$$PillSheetGroupDisplayNumberSettingImplToJson(_$PillSheetGroupDisplayNumberSettingImpl instance) => { 'beginPillNumber': instance.beginPillNumber, 'endPillNumber': instance.endPillNumber, }; diff --git a/lib/entity/pill_sheet_modified_history.codegen.freezed.dart b/lib/entity/pill_sheet_modified_history.codegen.freezed.dart index 5ef3db1e48..4a236c44d8 100644 --- a/lib/entity/pill_sheet_modified_history.codegen.freezed.dart +++ b/lib/entity/pill_sheet_modified_history.codegen.freezed.dart @@ -14,50 +14,36 @@ T _$identity(T value) => value; final _privateConstructorUsedError = UnsupportedError( 'It seems like you constructed your class using `MyClass._()`. This constructor is only meant to be used by freezed and you are not supposed to need it nor use it.\nPlease check the documentation here for more information: https://github.com/rrousselGit/freezed#adding-getters-and-methods-to-our-models'); -PillSheetModifiedHistory _$PillSheetModifiedHistoryFromJson( - Map json) { +PillSheetModifiedHistory _$PillSheetModifiedHistoryFromJson(Map json) { return _PillSheetModifiedHistory.fromJson(json); } /// @nodoc mixin _$PillSheetModifiedHistory { // Added since 2023-08-01 - dynamic get version => - throw _privateConstructorUsedError; // ============ BEGIN: Added since v1 ============ + dynamic get version => throw _privateConstructorUsedError; // ============ BEGIN: Added since v1 ============ @JsonKey(includeIfNull: false) String? get id => throw _privateConstructorUsedError; String get actionType => throw _privateConstructorUsedError; - @JsonKey( - fromJson: NonNullTimestampConverter.timestampToDateTime, - toJson: NonNullTimestampConverter.dateTimeToTimestamp) + @JsonKey(fromJson: NonNullTimestampConverter.timestampToDateTime, toJson: NonNullTimestampConverter.dateTimeToTimestamp) DateTime get estimatedEventCausingDate => throw _privateConstructorUsedError; - @JsonKey( - fromJson: NonNullTimestampConverter.timestampToDateTime, - toJson: NonNullTimestampConverter.dateTimeToTimestamp) - DateTime get createdAt => - throw _privateConstructorUsedError; // ============ END: Added since v1 ============ + @JsonKey(fromJson: NonNullTimestampConverter.timestampToDateTime, toJson: NonNullTimestampConverter.dateTimeToTimestamp) + DateTime get createdAt => throw _privateConstructorUsedError; // ============ END: Added since v1 ============ // ============ BEGIN: Added since v2 ============ // beforePillSheetGroup and afterPillSheetGroup is nullable // Because, actions for createdPillSheet and deletedPillSheet are not exists target single pill sheet - PillSheetGroup? get beforePillSheetGroup => - throw _privateConstructorUsedError; + PillSheetGroup? get beforePillSheetGroup => throw _privateConstructorUsedError; PillSheetGroup? get afterPillSheetGroup => throw _privateConstructorUsedError; - @JsonKey( - fromJson: TimestampConverter.timestampToDateTime, - toJson: TimestampConverter.dateTimeToTimestamp) - DateTime? get ttlExpiresDateTime => - throw _privateConstructorUsedError; // TODO: [Archive-PillSheetModifiedHistory]: 2024-04以降に対応 + @JsonKey(fromJson: TimestampConverter.timestampToDateTime, toJson: TimestampConverter.dateTimeToTimestamp) + DateTime? get ttlExpiresDateTime => throw _privateConstructorUsedError; // TODO: [Archive-PillSheetModifiedHistory]: 2024-04以降に対応 // 古いPillSheetModifiedHistoryのisArchivedにインデックスが貼られないため、TTLの期間内のデータが残っている間はこのフィールドが使えない // null含めて値を入れないとクエリの条件に合致しないので、2024-04まではarchivedDateTime,isArchivedのデータが必ず存在するPillSheetModifiedHistoryの準備機関とする // バッチを書いても良いが件数が多いのでこの方法をとっている - @JsonKey( - fromJson: TimestampConverter.timestampToDateTime, - toJson: TimestampConverter.dateTimeToTimestamp) + @JsonKey(fromJson: TimestampConverter.timestampToDateTime, toJson: TimestampConverter.dateTimeToTimestamp) DateTime? get archivedDateTime => throw _privateConstructorUsedError; // archivedDateTime isNull: false の条件だと、下記のエラーの条件に引っ掛かるため、archivedDateTime以外にもisArchivedを用意している。isArchived == true | isArchived == false の用途で使う // You can combine constraints with a logical AND by chaining multiple equality operators (== or array-contains). However, you must create a composite index to combine equality operators with the inequality operators, <, <=, >, and !=. - bool get isArchived => - throw _privateConstructorUsedError; // ============ END: Added since v2 ============ + bool get isArchived => throw _privateConstructorUsedError; // ============ END: Added since v2 ============ // The below properties are deprecated and added since v1. // This is deprecated property. TODO: [PillSheetModifiedHistory-V2] delete after 2024-05-01 // Instead of calculating from beforePillSheetGroup and afterPillSheetGroup @@ -79,38 +65,25 @@ mixin _$PillSheetModifiedHistory { Map toJson() => throw _privateConstructorUsedError; @JsonKey(ignore: true) - $PillSheetModifiedHistoryCopyWith get copyWith => - throw _privateConstructorUsedError; + $PillSheetModifiedHistoryCopyWith get copyWith => throw _privateConstructorUsedError; } /// @nodoc abstract class $PillSheetModifiedHistoryCopyWith<$Res> { - factory $PillSheetModifiedHistoryCopyWith(PillSheetModifiedHistory value, - $Res Function(PillSheetModifiedHistory) then) = + factory $PillSheetModifiedHistoryCopyWith(PillSheetModifiedHistory value, $Res Function(PillSheetModifiedHistory) then) = _$PillSheetModifiedHistoryCopyWithImpl<$Res, PillSheetModifiedHistory>; @useResult $Res call( {dynamic version, @JsonKey(includeIfNull: false) String? id, String actionType, - @JsonKey( - fromJson: NonNullTimestampConverter.timestampToDateTime, - toJson: NonNullTimestampConverter.dateTimeToTimestamp) + @JsonKey(fromJson: NonNullTimestampConverter.timestampToDateTime, toJson: NonNullTimestampConverter.dateTimeToTimestamp) DateTime estimatedEventCausingDate, - @JsonKey( - fromJson: NonNullTimestampConverter.timestampToDateTime, - toJson: NonNullTimestampConverter.dateTimeToTimestamp) - DateTime createdAt, + @JsonKey(fromJson: NonNullTimestampConverter.timestampToDateTime, toJson: NonNullTimestampConverter.dateTimeToTimestamp) DateTime createdAt, PillSheetGroup? beforePillSheetGroup, PillSheetGroup? afterPillSheetGroup, - @JsonKey( - fromJson: TimestampConverter.timestampToDateTime, - toJson: TimestampConverter.dateTimeToTimestamp) - DateTime? ttlExpiresDateTime, - @JsonKey( - fromJson: TimestampConverter.timestampToDateTime, - toJson: TimestampConverter.dateTimeToTimestamp) - DateTime? archivedDateTime, + @JsonKey(fromJson: TimestampConverter.timestampToDateTime, toJson: TimestampConverter.dateTimeToTimestamp) DateTime? ttlExpiresDateTime, + @JsonKey(fromJson: TimestampConverter.timestampToDateTime, toJson: TimestampConverter.dateTimeToTimestamp) DateTime? archivedDateTime, bool isArchived, PillSheetModifiedHistoryValue value, String? pillSheetID, @@ -128,9 +101,7 @@ abstract class $PillSheetModifiedHistoryCopyWith<$Res> { } /// @nodoc -class _$PillSheetModifiedHistoryCopyWithImpl<$Res, - $Val extends PillSheetModifiedHistory> - implements $PillSheetModifiedHistoryCopyWith<$Res> { +class _$PillSheetModifiedHistoryCopyWithImpl<$Res, $Val extends PillSheetModifiedHistory> implements $PillSheetModifiedHistoryCopyWith<$Res> { _$PillSheetModifiedHistoryCopyWithImpl(this._value, this._then); // ignore: unused_field @@ -289,11 +260,8 @@ class _$PillSheetModifiedHistoryCopyWithImpl<$Res, } /// @nodoc -abstract class _$$PillSheetModifiedHistoryImplCopyWith<$Res> - implements $PillSheetModifiedHistoryCopyWith<$Res> { - factory _$$PillSheetModifiedHistoryImplCopyWith( - _$PillSheetModifiedHistoryImpl value, - $Res Function(_$PillSheetModifiedHistoryImpl) then) = +abstract class _$$PillSheetModifiedHistoryImplCopyWith<$Res> implements $PillSheetModifiedHistoryCopyWith<$Res> { + factory _$$PillSheetModifiedHistoryImplCopyWith(_$PillSheetModifiedHistoryImpl value, $Res Function(_$PillSheetModifiedHistoryImpl) then) = __$$PillSheetModifiedHistoryImplCopyWithImpl<$Res>; @override @useResult @@ -301,24 +269,13 @@ abstract class _$$PillSheetModifiedHistoryImplCopyWith<$Res> {dynamic version, @JsonKey(includeIfNull: false) String? id, String actionType, - @JsonKey( - fromJson: NonNullTimestampConverter.timestampToDateTime, - toJson: NonNullTimestampConverter.dateTimeToTimestamp) + @JsonKey(fromJson: NonNullTimestampConverter.timestampToDateTime, toJson: NonNullTimestampConverter.dateTimeToTimestamp) DateTime estimatedEventCausingDate, - @JsonKey( - fromJson: NonNullTimestampConverter.timestampToDateTime, - toJson: NonNullTimestampConverter.dateTimeToTimestamp) - DateTime createdAt, + @JsonKey(fromJson: NonNullTimestampConverter.timestampToDateTime, toJson: NonNullTimestampConverter.dateTimeToTimestamp) DateTime createdAt, PillSheetGroup? beforePillSheetGroup, PillSheetGroup? afterPillSheetGroup, - @JsonKey( - fromJson: TimestampConverter.timestampToDateTime, - toJson: TimestampConverter.dateTimeToTimestamp) - DateTime? ttlExpiresDateTime, - @JsonKey( - fromJson: TimestampConverter.timestampToDateTime, - toJson: TimestampConverter.dateTimeToTimestamp) - DateTime? archivedDateTime, + @JsonKey(fromJson: TimestampConverter.timestampToDateTime, toJson: TimestampConverter.dateTimeToTimestamp) DateTime? ttlExpiresDateTime, + @JsonKey(fromJson: TimestampConverter.timestampToDateTime, toJson: TimestampConverter.dateTimeToTimestamp) DateTime? archivedDateTime, bool isArchived, PillSheetModifiedHistoryValue value, String? pillSheetID, @@ -341,13 +298,9 @@ abstract class _$$PillSheetModifiedHistoryImplCopyWith<$Res> } /// @nodoc -class __$$PillSheetModifiedHistoryImplCopyWithImpl<$Res> - extends _$PillSheetModifiedHistoryCopyWithImpl<$Res, - _$PillSheetModifiedHistoryImpl> +class __$$PillSheetModifiedHistoryImplCopyWithImpl<$Res> extends _$PillSheetModifiedHistoryCopyWithImpl<$Res, _$PillSheetModifiedHistoryImpl> implements _$$PillSheetModifiedHistoryImplCopyWith<$Res> { - __$$PillSheetModifiedHistoryImplCopyWithImpl( - _$PillSheetModifiedHistoryImpl _value, - $Res Function(_$PillSheetModifiedHistoryImpl) _then) + __$$PillSheetModifiedHistoryImplCopyWithImpl(_$PillSheetModifiedHistoryImpl _value, $Res Function(_$PillSheetModifiedHistoryImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -449,24 +402,14 @@ class _$PillSheetModifiedHistoryImpl extends _PillSheetModifiedHistory { {this.version = "v1", @JsonKey(includeIfNull: false) required this.id, required this.actionType, - @JsonKey( - fromJson: NonNullTimestampConverter.timestampToDateTime, - toJson: NonNullTimestampConverter.dateTimeToTimestamp) + @JsonKey(fromJson: NonNullTimestampConverter.timestampToDateTime, toJson: NonNullTimestampConverter.dateTimeToTimestamp) required this.estimatedEventCausingDate, - @JsonKey( - fromJson: NonNullTimestampConverter.timestampToDateTime, - toJson: NonNullTimestampConverter.dateTimeToTimestamp) + @JsonKey(fromJson: NonNullTimestampConverter.timestampToDateTime, toJson: NonNullTimestampConverter.dateTimeToTimestamp) required this.createdAt, required this.beforePillSheetGroup, required this.afterPillSheetGroup, - @JsonKey( - fromJson: TimestampConverter.timestampToDateTime, - toJson: TimestampConverter.dateTimeToTimestamp) - this.ttlExpiresDateTime, - @JsonKey( - fromJson: TimestampConverter.timestampToDateTime, - toJson: TimestampConverter.dateTimeToTimestamp) - this.archivedDateTime, + @JsonKey(fromJson: TimestampConverter.timestampToDateTime, toJson: TimestampConverter.dateTimeToTimestamp) this.ttlExpiresDateTime, + @JsonKey(fromJson: TimestampConverter.timestampToDateTime, toJson: TimestampConverter.dateTimeToTimestamp) this.archivedDateTime, this.isArchived = false, required this.value, required this.pillSheetID, @@ -477,8 +420,7 @@ class _$PillSheetModifiedHistoryImpl extends _PillSheetModifiedHistory { required this.after}) : super._(); - factory _$PillSheetModifiedHistoryImpl.fromJson(Map json) => - _$$PillSheetModifiedHistoryImplFromJson(json); + factory _$PillSheetModifiedHistoryImpl.fromJson(Map json) => _$$PillSheetModifiedHistoryImplFromJson(json); // Added since 2023-08-01 @override @@ -491,14 +433,10 @@ class _$PillSheetModifiedHistoryImpl extends _PillSheetModifiedHistory { @override final String actionType; @override - @JsonKey( - fromJson: NonNullTimestampConverter.timestampToDateTime, - toJson: NonNullTimestampConverter.dateTimeToTimestamp) + @JsonKey(fromJson: NonNullTimestampConverter.timestampToDateTime, toJson: NonNullTimestampConverter.dateTimeToTimestamp) final DateTime estimatedEventCausingDate; @override - @JsonKey( - fromJson: NonNullTimestampConverter.timestampToDateTime, - toJson: NonNullTimestampConverter.dateTimeToTimestamp) + @JsonKey(fromJson: NonNullTimestampConverter.timestampToDateTime, toJson: NonNullTimestampConverter.dateTimeToTimestamp) final DateTime createdAt; // ============ END: Added since v1 ============ // ============ BEGIN: Added since v2 ============ @@ -509,18 +447,14 @@ class _$PillSheetModifiedHistoryImpl extends _PillSheetModifiedHistory { @override final PillSheetGroup? afterPillSheetGroup; @override - @JsonKey( - fromJson: TimestampConverter.timestampToDateTime, - toJson: TimestampConverter.dateTimeToTimestamp) + @JsonKey(fromJson: TimestampConverter.timestampToDateTime, toJson: TimestampConverter.dateTimeToTimestamp) final DateTime? ttlExpiresDateTime; // TODO: [Archive-PillSheetModifiedHistory]: 2024-04以降に対応 // 古いPillSheetModifiedHistoryのisArchivedにインデックスが貼られないため、TTLの期間内のデータが残っている間はこのフィールドが使えない // null含めて値を入れないとクエリの条件に合致しないので、2024-04まではarchivedDateTime,isArchivedのデータが必ず存在するPillSheetModifiedHistoryの準備機関とする // バッチを書いても良いが件数が多いのでこの方法をとっている @override - @JsonKey( - fromJson: TimestampConverter.timestampToDateTime, - toJson: TimestampConverter.dateTimeToTimestamp) + @JsonKey(fromJson: TimestampConverter.timestampToDateTime, toJson: TimestampConverter.dateTimeToTimestamp) final DateTime? archivedDateTime; // archivedDateTime isNull: false の条件だと、下記のエラーの条件に引っ掛かるため、archivedDateTime以外にもisArchivedを用意している。isArchived == true | isArchived == false の用途で使う // You can combine constraints with a logical AND by chaining multiple equality operators (== or array-contains). However, you must create a composite index to combine equality operators with the inequality operators, <, <=, >, and !=. @@ -566,32 +500,19 @@ class _$PillSheetModifiedHistoryImpl extends _PillSheetModifiedHistory { other is _$PillSheetModifiedHistoryImpl && const DeepCollectionEquality().equals(other.version, version) && (identical(other.id, id) || other.id == id) && - (identical(other.actionType, actionType) || - other.actionType == actionType) && - (identical(other.estimatedEventCausingDate, - estimatedEventCausingDate) || - other.estimatedEventCausingDate == estimatedEventCausingDate) && - (identical(other.createdAt, createdAt) || - other.createdAt == createdAt) && - (identical(other.beforePillSheetGroup, beforePillSheetGroup) || - other.beforePillSheetGroup == beforePillSheetGroup) && - (identical(other.afterPillSheetGroup, afterPillSheetGroup) || - other.afterPillSheetGroup == afterPillSheetGroup) && - (identical(other.ttlExpiresDateTime, ttlExpiresDateTime) || - other.ttlExpiresDateTime == ttlExpiresDateTime) && - (identical(other.archivedDateTime, archivedDateTime) || - other.archivedDateTime == archivedDateTime) && - (identical(other.isArchived, isArchived) || - other.isArchived == isArchived) && + (identical(other.actionType, actionType) || other.actionType == actionType) && + (identical(other.estimatedEventCausingDate, estimatedEventCausingDate) || other.estimatedEventCausingDate == estimatedEventCausingDate) && + (identical(other.createdAt, createdAt) || other.createdAt == createdAt) && + (identical(other.beforePillSheetGroup, beforePillSheetGroup) || other.beforePillSheetGroup == beforePillSheetGroup) && + (identical(other.afterPillSheetGroup, afterPillSheetGroup) || other.afterPillSheetGroup == afterPillSheetGroup) && + (identical(other.ttlExpiresDateTime, ttlExpiresDateTime) || other.ttlExpiresDateTime == ttlExpiresDateTime) && + (identical(other.archivedDateTime, archivedDateTime) || other.archivedDateTime == archivedDateTime) && + (identical(other.isArchived, isArchived) || other.isArchived == isArchived) && (identical(other.value, value) || other.value == value) && - (identical(other.pillSheetID, pillSheetID) || - other.pillSheetID == pillSheetID) && - (identical(other.pillSheetGroupID, pillSheetGroupID) || - other.pillSheetGroupID == pillSheetGroupID) && - (identical(other.beforePillSheetID, beforePillSheetID) || - other.beforePillSheetID == beforePillSheetID) && - (identical(other.afterPillSheetID, afterPillSheetID) || - other.afterPillSheetID == afterPillSheetID) && + (identical(other.pillSheetID, pillSheetID) || other.pillSheetID == pillSheetID) && + (identical(other.pillSheetGroupID, pillSheetGroupID) || other.pillSheetGroupID == pillSheetGroupID) && + (identical(other.beforePillSheetID, beforePillSheetID) || other.beforePillSheetID == beforePillSheetID) && + (identical(other.afterPillSheetID, afterPillSheetID) || other.afterPillSheetID == afterPillSheetID) && (identical(other.before, before) || other.before == before) && (identical(other.after, after) || other.after == after)); } @@ -621,9 +542,8 @@ class _$PillSheetModifiedHistoryImpl extends _PillSheetModifiedHistory { @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$PillSheetModifiedHistoryImplCopyWith<_$PillSheetModifiedHistoryImpl> - get copyWith => __$$PillSheetModifiedHistoryImplCopyWithImpl< - _$PillSheetModifiedHistoryImpl>(this, _$identity); + _$$PillSheetModifiedHistoryImplCopyWith<_$PillSheetModifiedHistoryImpl> get copyWith => + __$$PillSheetModifiedHistoryImplCopyWithImpl<_$PillSheetModifiedHistoryImpl>(this, _$identity); @override Map toJson() { @@ -638,24 +558,14 @@ abstract class _PillSheetModifiedHistory extends PillSheetModifiedHistory { {final dynamic version, @JsonKey(includeIfNull: false) required final String? id, required final String actionType, - @JsonKey( - fromJson: NonNullTimestampConverter.timestampToDateTime, - toJson: NonNullTimestampConverter.dateTimeToTimestamp) + @JsonKey(fromJson: NonNullTimestampConverter.timestampToDateTime, toJson: NonNullTimestampConverter.dateTimeToTimestamp) required final DateTime estimatedEventCausingDate, - @JsonKey( - fromJson: NonNullTimestampConverter.timestampToDateTime, - toJson: NonNullTimestampConverter.dateTimeToTimestamp) + @JsonKey(fromJson: NonNullTimestampConverter.timestampToDateTime, toJson: NonNullTimestampConverter.dateTimeToTimestamp) required final DateTime createdAt, required final PillSheetGroup? beforePillSheetGroup, required final PillSheetGroup? afterPillSheetGroup, - @JsonKey( - fromJson: TimestampConverter.timestampToDateTime, - toJson: TimestampConverter.dateTimeToTimestamp) - final DateTime? ttlExpiresDateTime, - @JsonKey( - fromJson: TimestampConverter.timestampToDateTime, - toJson: TimestampConverter.dateTimeToTimestamp) - final DateTime? archivedDateTime, + @JsonKey(fromJson: TimestampConverter.timestampToDateTime, toJson: TimestampConverter.dateTimeToTimestamp) final DateTime? ttlExpiresDateTime, + @JsonKey(fromJson: TimestampConverter.timestampToDateTime, toJson: TimestampConverter.dateTimeToTimestamp) final DateTime? archivedDateTime, final bool isArchived, required final PillSheetModifiedHistoryValue value, required final String? pillSheetID, @@ -666,8 +576,7 @@ abstract class _PillSheetModifiedHistory extends PillSheetModifiedHistory { required final PillSheet? after}) = _$PillSheetModifiedHistoryImpl; const _PillSheetModifiedHistory._() : super._(); - factory _PillSheetModifiedHistory.fromJson(Map json) = - _$PillSheetModifiedHistoryImpl.fromJson; + factory _PillSheetModifiedHistory.fromJson(Map json) = _$PillSheetModifiedHistoryImpl.fromJson; @override // Added since 2023-08-01 dynamic get version; @@ -677,14 +586,10 @@ abstract class _PillSheetModifiedHistory extends PillSheetModifiedHistory { @override String get actionType; @override - @JsonKey( - fromJson: NonNullTimestampConverter.timestampToDateTime, - toJson: NonNullTimestampConverter.dateTimeToTimestamp) + @JsonKey(fromJson: NonNullTimestampConverter.timestampToDateTime, toJson: NonNullTimestampConverter.dateTimeToTimestamp) DateTime get estimatedEventCausingDate; @override - @JsonKey( - fromJson: NonNullTimestampConverter.timestampToDateTime, - toJson: NonNullTimestampConverter.dateTimeToTimestamp) + @JsonKey(fromJson: NonNullTimestampConverter.timestampToDateTime, toJson: NonNullTimestampConverter.dateTimeToTimestamp) DateTime get createdAt; @override // ============ END: Added since v1 ============ // ============ BEGIN: Added since v2 ============ @@ -694,17 +599,13 @@ abstract class _PillSheetModifiedHistory extends PillSheetModifiedHistory { @override PillSheetGroup? get afterPillSheetGroup; @override - @JsonKey( - fromJson: TimestampConverter.timestampToDateTime, - toJson: TimestampConverter.dateTimeToTimestamp) + @JsonKey(fromJson: TimestampConverter.timestampToDateTime, toJson: TimestampConverter.dateTimeToTimestamp) DateTime? get ttlExpiresDateTime; @override // TODO: [Archive-PillSheetModifiedHistory]: 2024-04以降に対応 // 古いPillSheetModifiedHistoryのisArchivedにインデックスが貼られないため、TTLの期間内のデータが残っている間はこのフィールドが使えない // null含めて値を入れないとクエリの条件に合致しないので、2024-04まではarchivedDateTime,isArchivedのデータが必ず存在するPillSheetModifiedHistoryの準備機関とする // バッチを書いても良いが件数が多いのでこの方法をとっている - @JsonKey( - fromJson: TimestampConverter.timestampToDateTime, - toJson: TimestampConverter.dateTimeToTimestamp) + @JsonKey(fromJson: TimestampConverter.timestampToDateTime, toJson: TimestampConverter.dateTimeToTimestamp) DateTime? get archivedDateTime; @override // archivedDateTime isNull: false の条件だと、下記のエラーの条件に引っ掛かるため、archivedDateTime以外にもisArchivedを用意している。isArchived == true | isArchived == false の用途で使う // You can combine constraints with a logical AND by chaining multiple equality operators (== or array-contains). However, you must create a composite index to combine equality operators with the inequality operators, <, <=, >, and !=. @@ -733,6 +634,5 @@ abstract class _PillSheetModifiedHistory extends PillSheetModifiedHistory { PillSheet? get after; @override @JsonKey(ignore: true) - _$$PillSheetModifiedHistoryImplCopyWith<_$PillSheetModifiedHistoryImpl> - get copyWith => throw _privateConstructorUsedError; + _$$PillSheetModifiedHistoryImplCopyWith<_$PillSheetModifiedHistoryImpl> get copyWith => throw _privateConstructorUsedError; } diff --git a/lib/entity/pill_sheet_modified_history.codegen.g.dart b/lib/entity/pill_sheet_modified_history.codegen.g.dart index 443bf531fd..150ddbcf14 100644 --- a/lib/entity/pill_sheet_modified_history.codegen.g.dart +++ b/lib/entity/pill_sheet_modified_history.codegen.g.dart @@ -6,45 +6,28 @@ part of 'pill_sheet_modified_history.codegen.dart'; // JsonSerializableGenerator // ************************************************************************** -_$PillSheetModifiedHistoryImpl _$$PillSheetModifiedHistoryImplFromJson( - Map json) => - _$PillSheetModifiedHistoryImpl( +_$PillSheetModifiedHistoryImpl _$$PillSheetModifiedHistoryImplFromJson(Map json) => _$PillSheetModifiedHistoryImpl( version: json['version'] ?? "v1", id: json['id'] as String?, actionType: json['actionType'] as String, - estimatedEventCausingDate: NonNullTimestampConverter.timestampToDateTime( - json['estimatedEventCausingDate'] as Timestamp), - createdAt: NonNullTimestampConverter.timestampToDateTime( - json['createdAt'] as Timestamp), - beforePillSheetGroup: json['beforePillSheetGroup'] == null - ? null - : PillSheetGroup.fromJson( - json['beforePillSheetGroup'] as Map), - afterPillSheetGroup: json['afterPillSheetGroup'] == null - ? null - : PillSheetGroup.fromJson( - json['afterPillSheetGroup'] as Map), - ttlExpiresDateTime: TimestampConverter.timestampToDateTime( - json['ttlExpiresDateTime'] as Timestamp?), - archivedDateTime: TimestampConverter.timestampToDateTime( - json['archivedDateTime'] as Timestamp?), + estimatedEventCausingDate: NonNullTimestampConverter.timestampToDateTime(json['estimatedEventCausingDate'] as Timestamp), + createdAt: NonNullTimestampConverter.timestampToDateTime(json['createdAt'] as Timestamp), + beforePillSheetGroup: + json['beforePillSheetGroup'] == null ? null : PillSheetGroup.fromJson(json['beforePillSheetGroup'] as Map), + afterPillSheetGroup: json['afterPillSheetGroup'] == null ? null : PillSheetGroup.fromJson(json['afterPillSheetGroup'] as Map), + ttlExpiresDateTime: TimestampConverter.timestampToDateTime(json['ttlExpiresDateTime'] as Timestamp?), + archivedDateTime: TimestampConverter.timestampToDateTime(json['archivedDateTime'] as Timestamp?), isArchived: json['isArchived'] as bool? ?? false, - value: PillSheetModifiedHistoryValue.fromJson( - json['value'] as Map), + value: PillSheetModifiedHistoryValue.fromJson(json['value'] as Map), pillSheetID: json['pillSheetID'] as String?, pillSheetGroupID: json['pillSheetGroupID'] as String?, beforePillSheetID: json['beforePillSheetID'] as String?, afterPillSheetID: json['afterPillSheetID'] as String?, - before: json['before'] == null - ? null - : PillSheet.fromJson(json['before'] as Map), - after: json['after'] == null - ? null - : PillSheet.fromJson(json['after'] as Map), + before: json['before'] == null ? null : PillSheet.fromJson(json['before'] as Map), + after: json['after'] == null ? null : PillSheet.fromJson(json['after'] as Map), ); -Map _$$PillSheetModifiedHistoryImplToJson( - _$PillSheetModifiedHistoryImpl instance) { +Map _$$PillSheetModifiedHistoryImplToJson(_$PillSheetModifiedHistoryImpl instance) { final val = { 'version': instance.version, }; @@ -57,17 +40,12 @@ Map _$$PillSheetModifiedHistoryImplToJson( writeNotNull('id', instance.id); val['actionType'] = instance.actionType; - val['estimatedEventCausingDate'] = - NonNullTimestampConverter.dateTimeToTimestamp( - instance.estimatedEventCausingDate); - val['createdAt'] = - NonNullTimestampConverter.dateTimeToTimestamp(instance.createdAt); + val['estimatedEventCausingDate'] = NonNullTimestampConverter.dateTimeToTimestamp(instance.estimatedEventCausingDate); + val['createdAt'] = NonNullTimestampConverter.dateTimeToTimestamp(instance.createdAt); val['beforePillSheetGroup'] = instance.beforePillSheetGroup?.toJson(); val['afterPillSheetGroup'] = instance.afterPillSheetGroup?.toJson(); - val['ttlExpiresDateTime'] = - TimestampConverter.dateTimeToTimestamp(instance.ttlExpiresDateTime); - val['archivedDateTime'] = - TimestampConverter.dateTimeToTimestamp(instance.archivedDateTime); + val['ttlExpiresDateTime'] = TimestampConverter.dateTimeToTimestamp(instance.ttlExpiresDateTime); + val['archivedDateTime'] = TimestampConverter.dateTimeToTimestamp(instance.archivedDateTime); val['isArchived'] = instance.isArchived; val['value'] = instance.value.toJson(); val['pillSheetID'] = instance.pillSheetID; diff --git a/lib/entity/pill_sheet_modified_history_value.codegen.freezed.dart b/lib/entity/pill_sheet_modified_history_value.codegen.freezed.dart index 54ab12aa87..4e98fa3123 100644 --- a/lib/entity/pill_sheet_modified_history_value.codegen.freezed.dart +++ b/lib/entity/pill_sheet_modified_history_value.codegen.freezed.dart @@ -14,57 +14,39 @@ T _$identity(T value) => value; final _privateConstructorUsedError = UnsupportedError( 'It seems like you constructed your class using `MyClass._()`. This constructor is only meant to be used by freezed and you are not supposed to need it nor use it.\nPlease check the documentation here for more information: https://github.com/rrousselGit/freezed#adding-getters-and-methods-to-our-models'); -PillSheetModifiedHistoryValue _$PillSheetModifiedHistoryValueFromJson( - Map json) { +PillSheetModifiedHistoryValue _$PillSheetModifiedHistoryValueFromJson(Map json) { return _PillSheetModifiedHistoryValue.fromJson(json); } /// @nodoc mixin _$PillSheetModifiedHistoryValue { - CreatedPillSheetValue? get createdPillSheet => - throw _privateConstructorUsedError; - AutomaticallyRecordedLastTakenDateValue? - get automaticallyRecordedLastTakenDate => - throw _privateConstructorUsedError; - DeletedPillSheetValue? get deletedPillSheet => - throw _privateConstructorUsedError; + CreatedPillSheetValue? get createdPillSheet => throw _privateConstructorUsedError; + AutomaticallyRecordedLastTakenDateValue? get automaticallyRecordedLastTakenDate => throw _privateConstructorUsedError; + DeletedPillSheetValue? get deletedPillSheet => throw _privateConstructorUsedError; TakenPillValue? get takenPill => throw _privateConstructorUsedError; - RevertTakenPillValue? get revertTakenPill => - throw _privateConstructorUsedError; - ChangedPillNumberValue? get changedPillNumber => - throw _privateConstructorUsedError; + RevertTakenPillValue? get revertTakenPill => throw _privateConstructorUsedError; + ChangedPillNumberValue? get changedPillNumber => throw _privateConstructorUsedError; EndedPillSheetValue? get endedPillSheet => throw _privateConstructorUsedError; - BeganRestDurationValue? get beganRestDurationValue => - throw _privateConstructorUsedError; - EndedRestDurationValue? get endedRestDurationValue => - throw _privateConstructorUsedError; - ChangedRestDurationBeginDateValue? get changedRestDurationBeginDateValue => - throw _privateConstructorUsedError; - ChangedRestDurationValue? get changedRestDurationValue => - throw _privateConstructorUsedError; - ChangedBeginDisplayNumberValue? get changedBeginDisplayNumber => - throw _privateConstructorUsedError; - ChangedEndDisplayNumberValue? get changedEndDisplayNumber => - throw _privateConstructorUsedError; + BeganRestDurationValue? get beganRestDurationValue => throw _privateConstructorUsedError; + EndedRestDurationValue? get endedRestDurationValue => throw _privateConstructorUsedError; + ChangedRestDurationBeginDateValue? get changedRestDurationBeginDateValue => throw _privateConstructorUsedError; + ChangedRestDurationValue? get changedRestDurationValue => throw _privateConstructorUsedError; + ChangedBeginDisplayNumberValue? get changedBeginDisplayNumber => throw _privateConstructorUsedError; + ChangedEndDisplayNumberValue? get changedEndDisplayNumber => throw _privateConstructorUsedError; Map toJson() => throw _privateConstructorUsedError; @JsonKey(ignore: true) - $PillSheetModifiedHistoryValueCopyWith - get copyWith => throw _privateConstructorUsedError; + $PillSheetModifiedHistoryValueCopyWith get copyWith => throw _privateConstructorUsedError; } /// @nodoc abstract class $PillSheetModifiedHistoryValueCopyWith<$Res> { - factory $PillSheetModifiedHistoryValueCopyWith( - PillSheetModifiedHistoryValue value, - $Res Function(PillSheetModifiedHistoryValue) then) = - _$PillSheetModifiedHistoryValueCopyWithImpl<$Res, - PillSheetModifiedHistoryValue>; + factory $PillSheetModifiedHistoryValueCopyWith(PillSheetModifiedHistoryValue value, $Res Function(PillSheetModifiedHistoryValue) then) = + _$PillSheetModifiedHistoryValueCopyWithImpl<$Res, PillSheetModifiedHistoryValue>; @useResult $Res call( {CreatedPillSheetValue? createdPillSheet, - AutomaticallyRecordedLastTakenDateValue? - automaticallyRecordedLastTakenDate, + AutomaticallyRecordedLastTakenDateValue? automaticallyRecordedLastTakenDate, DeletedPillSheetValue? deletedPillSheet, TakenPillValue? takenPill, RevertTakenPillValue? revertTakenPill, @@ -78,8 +60,7 @@ abstract class $PillSheetModifiedHistoryValueCopyWith<$Res> { ChangedEndDisplayNumberValue? changedEndDisplayNumber}); $CreatedPillSheetValueCopyWith<$Res>? get createdPillSheet; - $AutomaticallyRecordedLastTakenDateValueCopyWith<$Res>? - get automaticallyRecordedLastTakenDate; + $AutomaticallyRecordedLastTakenDateValueCopyWith<$Res>? get automaticallyRecordedLastTakenDate; $DeletedPillSheetValueCopyWith<$Res>? get deletedPillSheet; $TakenPillValueCopyWith<$Res>? get takenPill; $RevertTakenPillValueCopyWith<$Res>? get revertTakenPill; @@ -87,16 +68,14 @@ abstract class $PillSheetModifiedHistoryValueCopyWith<$Res> { $EndedPillSheetValueCopyWith<$Res>? get endedPillSheet; $BeganRestDurationValueCopyWith<$Res>? get beganRestDurationValue; $EndedRestDurationValueCopyWith<$Res>? get endedRestDurationValue; - $ChangedRestDurationBeginDateValueCopyWith<$Res>? - get changedRestDurationBeginDateValue; + $ChangedRestDurationBeginDateValueCopyWith<$Res>? get changedRestDurationBeginDateValue; $ChangedRestDurationValueCopyWith<$Res>? get changedRestDurationValue; $ChangedBeginDisplayNumberValueCopyWith<$Res>? get changedBeginDisplayNumber; $ChangedEndDisplayNumberValueCopyWith<$Res>? get changedEndDisplayNumber; } /// @nodoc -class _$PillSheetModifiedHistoryValueCopyWithImpl<$Res, - $Val extends PillSheetModifiedHistoryValue> +class _$PillSheetModifiedHistoryValueCopyWithImpl<$Res, $Val extends PillSheetModifiedHistoryValue> implements $PillSheetModifiedHistoryValueCopyWith<$Res> { _$PillSheetModifiedHistoryValueCopyWithImpl(this._value, this._then); @@ -127,8 +106,7 @@ class _$PillSheetModifiedHistoryValueCopyWithImpl<$Res, ? _value.createdPillSheet : createdPillSheet // ignore: cast_nullable_to_non_nullable as CreatedPillSheetValue?, - automaticallyRecordedLastTakenDate: freezed == - automaticallyRecordedLastTakenDate + automaticallyRecordedLastTakenDate: freezed == automaticallyRecordedLastTakenDate ? _value.automaticallyRecordedLastTakenDate : automaticallyRecordedLastTakenDate // ignore: cast_nullable_to_non_nullable as AutomaticallyRecordedLastTakenDateValue?, @@ -160,8 +138,7 @@ class _$PillSheetModifiedHistoryValueCopyWithImpl<$Res, ? _value.endedRestDurationValue : endedRestDurationValue // ignore: cast_nullable_to_non_nullable as EndedRestDurationValue?, - changedRestDurationBeginDateValue: freezed == - changedRestDurationBeginDateValue + changedRestDurationBeginDateValue: freezed == changedRestDurationBeginDateValue ? _value.changedRestDurationBeginDateValue : changedRestDurationBeginDateValue // ignore: cast_nullable_to_non_nullable as ChangedRestDurationBeginDateValue?, @@ -187,24 +164,20 @@ class _$PillSheetModifiedHistoryValueCopyWithImpl<$Res, return null; } - return $CreatedPillSheetValueCopyWith<$Res>(_value.createdPillSheet!, - (value) { + return $CreatedPillSheetValueCopyWith<$Res>(_value.createdPillSheet!, (value) { return _then(_value.copyWith(createdPillSheet: value) as $Val); }); } @override @pragma('vm:prefer-inline') - $AutomaticallyRecordedLastTakenDateValueCopyWith<$Res>? - get automaticallyRecordedLastTakenDate { + $AutomaticallyRecordedLastTakenDateValueCopyWith<$Res>? get automaticallyRecordedLastTakenDate { if (_value.automaticallyRecordedLastTakenDate == null) { return null; } - return $AutomaticallyRecordedLastTakenDateValueCopyWith<$Res>( - _value.automaticallyRecordedLastTakenDate!, (value) { - return _then( - _value.copyWith(automaticallyRecordedLastTakenDate: value) as $Val); + return $AutomaticallyRecordedLastTakenDateValueCopyWith<$Res>(_value.automaticallyRecordedLastTakenDate!, (value) { + return _then(_value.copyWith(automaticallyRecordedLastTakenDate: value) as $Val); }); } @@ -215,8 +188,7 @@ class _$PillSheetModifiedHistoryValueCopyWithImpl<$Res, return null; } - return $DeletedPillSheetValueCopyWith<$Res>(_value.deletedPillSheet!, - (value) { + return $DeletedPillSheetValueCopyWith<$Res>(_value.deletedPillSheet!, (value) { return _then(_value.copyWith(deletedPillSheet: value) as $Val); }); } @@ -240,8 +212,7 @@ class _$PillSheetModifiedHistoryValueCopyWithImpl<$Res, return null; } - return $RevertTakenPillValueCopyWith<$Res>(_value.revertTakenPill!, - (value) { + return $RevertTakenPillValueCopyWith<$Res>(_value.revertTakenPill!, (value) { return _then(_value.copyWith(revertTakenPill: value) as $Val); }); } @@ -253,8 +224,7 @@ class _$PillSheetModifiedHistoryValueCopyWithImpl<$Res, return null; } - return $ChangedPillNumberValueCopyWith<$Res>(_value.changedPillNumber!, - (value) { + return $ChangedPillNumberValueCopyWith<$Res>(_value.changedPillNumber!, (value) { return _then(_value.copyWith(changedPillNumber: value) as $Val); }); } @@ -278,8 +248,7 @@ class _$PillSheetModifiedHistoryValueCopyWithImpl<$Res, return null; } - return $BeganRestDurationValueCopyWith<$Res>(_value.beganRestDurationValue!, - (value) { + return $BeganRestDurationValueCopyWith<$Res>(_value.beganRestDurationValue!, (value) { return _then(_value.copyWith(beganRestDurationValue: value) as $Val); }); } @@ -291,24 +260,20 @@ class _$PillSheetModifiedHistoryValueCopyWithImpl<$Res, return null; } - return $EndedRestDurationValueCopyWith<$Res>(_value.endedRestDurationValue!, - (value) { + return $EndedRestDurationValueCopyWith<$Res>(_value.endedRestDurationValue!, (value) { return _then(_value.copyWith(endedRestDurationValue: value) as $Val); }); } @override @pragma('vm:prefer-inline') - $ChangedRestDurationBeginDateValueCopyWith<$Res>? - get changedRestDurationBeginDateValue { + $ChangedRestDurationBeginDateValueCopyWith<$Res>? get changedRestDurationBeginDateValue { if (_value.changedRestDurationBeginDateValue == null) { return null; } - return $ChangedRestDurationBeginDateValueCopyWith<$Res>( - _value.changedRestDurationBeginDateValue!, (value) { - return _then( - _value.copyWith(changedRestDurationBeginDateValue: value) as $Val); + return $ChangedRestDurationBeginDateValueCopyWith<$Res>(_value.changedRestDurationBeginDateValue!, (value) { + return _then(_value.copyWith(changedRestDurationBeginDateValue: value) as $Val); }); } @@ -319,8 +284,7 @@ class _$PillSheetModifiedHistoryValueCopyWithImpl<$Res, return null; } - return $ChangedRestDurationValueCopyWith<$Res>( - _value.changedRestDurationValue!, (value) { + return $ChangedRestDurationValueCopyWith<$Res>(_value.changedRestDurationValue!, (value) { return _then(_value.copyWith(changedRestDurationValue: value) as $Val); }); } @@ -332,8 +296,7 @@ class _$PillSheetModifiedHistoryValueCopyWithImpl<$Res, return null; } - return $ChangedBeginDisplayNumberValueCopyWith<$Res>( - _value.changedBeginDisplayNumber!, (value) { + return $ChangedBeginDisplayNumberValueCopyWith<$Res>(_value.changedBeginDisplayNumber!, (value) { return _then(_value.copyWith(changedBeginDisplayNumber: value) as $Val); }); } @@ -345,26 +308,22 @@ class _$PillSheetModifiedHistoryValueCopyWithImpl<$Res, return null; } - return $ChangedEndDisplayNumberValueCopyWith<$Res>( - _value.changedEndDisplayNumber!, (value) { + return $ChangedEndDisplayNumberValueCopyWith<$Res>(_value.changedEndDisplayNumber!, (value) { return _then(_value.copyWith(changedEndDisplayNumber: value) as $Val); }); } } /// @nodoc -abstract class _$$PillSheetModifiedHistoryValueImplCopyWith<$Res> - implements $PillSheetModifiedHistoryValueCopyWith<$Res> { +abstract class _$$PillSheetModifiedHistoryValueImplCopyWith<$Res> implements $PillSheetModifiedHistoryValueCopyWith<$Res> { factory _$$PillSheetModifiedHistoryValueImplCopyWith( - _$PillSheetModifiedHistoryValueImpl value, - $Res Function(_$PillSheetModifiedHistoryValueImpl) then) = + _$PillSheetModifiedHistoryValueImpl value, $Res Function(_$PillSheetModifiedHistoryValueImpl) then) = __$$PillSheetModifiedHistoryValueImplCopyWithImpl<$Res>; @override @useResult $Res call( {CreatedPillSheetValue? createdPillSheet, - AutomaticallyRecordedLastTakenDateValue? - automaticallyRecordedLastTakenDate, + AutomaticallyRecordedLastTakenDateValue? automaticallyRecordedLastTakenDate, DeletedPillSheetValue? deletedPillSheet, TakenPillValue? takenPill, RevertTakenPillValue? revertTakenPill, @@ -380,8 +339,7 @@ abstract class _$$PillSheetModifiedHistoryValueImplCopyWith<$Res> @override $CreatedPillSheetValueCopyWith<$Res>? get createdPillSheet; @override - $AutomaticallyRecordedLastTakenDateValueCopyWith<$Res>? - get automaticallyRecordedLastTakenDate; + $AutomaticallyRecordedLastTakenDateValueCopyWith<$Res>? get automaticallyRecordedLastTakenDate; @override $DeletedPillSheetValueCopyWith<$Res>? get deletedPillSheet; @override @@ -397,8 +355,7 @@ abstract class _$$PillSheetModifiedHistoryValueImplCopyWith<$Res> @override $EndedRestDurationValueCopyWith<$Res>? get endedRestDurationValue; @override - $ChangedRestDurationBeginDateValueCopyWith<$Res>? - get changedRestDurationBeginDateValue; + $ChangedRestDurationBeginDateValueCopyWith<$Res>? get changedRestDurationBeginDateValue; @override $ChangedRestDurationValueCopyWith<$Res>? get changedRestDurationValue; @override @@ -409,12 +366,10 @@ abstract class _$$PillSheetModifiedHistoryValueImplCopyWith<$Res> /// @nodoc class __$$PillSheetModifiedHistoryValueImplCopyWithImpl<$Res> - extends _$PillSheetModifiedHistoryValueCopyWithImpl<$Res, - _$PillSheetModifiedHistoryValueImpl> + extends _$PillSheetModifiedHistoryValueCopyWithImpl<$Res, _$PillSheetModifiedHistoryValueImpl> implements _$$PillSheetModifiedHistoryValueImplCopyWith<$Res> { __$$PillSheetModifiedHistoryValueImplCopyWithImpl( - _$PillSheetModifiedHistoryValueImpl _value, - $Res Function(_$PillSheetModifiedHistoryValueImpl) _then) + _$PillSheetModifiedHistoryValueImpl _value, $Res Function(_$PillSheetModifiedHistoryValueImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -439,8 +394,7 @@ class __$$PillSheetModifiedHistoryValueImplCopyWithImpl<$Res> ? _value.createdPillSheet : createdPillSheet // ignore: cast_nullable_to_non_nullable as CreatedPillSheetValue?, - automaticallyRecordedLastTakenDate: freezed == - automaticallyRecordedLastTakenDate + automaticallyRecordedLastTakenDate: freezed == automaticallyRecordedLastTakenDate ? _value.automaticallyRecordedLastTakenDate : automaticallyRecordedLastTakenDate // ignore: cast_nullable_to_non_nullable as AutomaticallyRecordedLastTakenDateValue?, @@ -472,8 +426,7 @@ class __$$PillSheetModifiedHistoryValueImplCopyWithImpl<$Res> ? _value.endedRestDurationValue : endedRestDurationValue // ignore: cast_nullable_to_non_nullable as EndedRestDurationValue?, - changedRestDurationBeginDateValue: freezed == - changedRestDurationBeginDateValue + changedRestDurationBeginDateValue: freezed == changedRestDurationBeginDateValue ? _value.changedRestDurationBeginDateValue : changedRestDurationBeginDateValue // ignore: cast_nullable_to_non_nullable as ChangedRestDurationBeginDateValue?, @@ -496,8 +449,7 @@ class __$$PillSheetModifiedHistoryValueImplCopyWithImpl<$Res> /// @nodoc @JsonSerializable(explicitToJson: true) -class _$PillSheetModifiedHistoryValueImpl - extends _PillSheetModifiedHistoryValue { +class _$PillSheetModifiedHistoryValueImpl extends _PillSheetModifiedHistoryValue { const _$PillSheetModifiedHistoryValueImpl( {this.createdPillSheet = null, this.automaticallyRecordedLastTakenDate = null, @@ -514,17 +466,14 @@ class _$PillSheetModifiedHistoryValueImpl this.changedEndDisplayNumber = null}) : super._(); - factory _$PillSheetModifiedHistoryValueImpl.fromJson( - Map json) => - _$$PillSheetModifiedHistoryValueImplFromJson(json); + factory _$PillSheetModifiedHistoryValueImpl.fromJson(Map json) => _$$PillSheetModifiedHistoryValueImplFromJson(json); @override @JsonKey() final CreatedPillSheetValue? createdPillSheet; @override @JsonKey() - final AutomaticallyRecordedLastTakenDateValue? - automaticallyRecordedLastTakenDate; + final AutomaticallyRecordedLastTakenDateValue? automaticallyRecordedLastTakenDate; @override @JsonKey() final DeletedPillSheetValue? deletedPillSheet; @@ -569,39 +518,21 @@ class _$PillSheetModifiedHistoryValueImpl return identical(this, other) || (other.runtimeType == runtimeType && other is _$PillSheetModifiedHistoryValueImpl && - (identical(other.createdPillSheet, createdPillSheet) || - other.createdPillSheet == createdPillSheet) && - (identical(other.automaticallyRecordedLastTakenDate, - automaticallyRecordedLastTakenDate) || - other.automaticallyRecordedLastTakenDate == - automaticallyRecordedLastTakenDate) && - (identical(other.deletedPillSheet, deletedPillSheet) || - other.deletedPillSheet == deletedPillSheet) && - (identical(other.takenPill, takenPill) || - other.takenPill == takenPill) && - (identical(other.revertTakenPill, revertTakenPill) || - other.revertTakenPill == revertTakenPill) && - (identical(other.changedPillNumber, changedPillNumber) || - other.changedPillNumber == changedPillNumber) && - (identical(other.endedPillSheet, endedPillSheet) || - other.endedPillSheet == endedPillSheet) && - (identical(other.beganRestDurationValue, beganRestDurationValue) || - other.beganRestDurationValue == beganRestDurationValue) && - (identical(other.endedRestDurationValue, endedRestDurationValue) || - other.endedRestDurationValue == endedRestDurationValue) && - (identical(other.changedRestDurationBeginDateValue, - changedRestDurationBeginDateValue) || - other.changedRestDurationBeginDateValue == - changedRestDurationBeginDateValue) && - (identical( - other.changedRestDurationValue, changedRestDurationValue) || - other.changedRestDurationValue == changedRestDurationValue) && - (identical(other.changedBeginDisplayNumber, - changedBeginDisplayNumber) || - other.changedBeginDisplayNumber == changedBeginDisplayNumber) && - (identical( - other.changedEndDisplayNumber, changedEndDisplayNumber) || - other.changedEndDisplayNumber == changedEndDisplayNumber)); + (identical(other.createdPillSheet, createdPillSheet) || other.createdPillSheet == createdPillSheet) && + (identical(other.automaticallyRecordedLastTakenDate, automaticallyRecordedLastTakenDate) || + other.automaticallyRecordedLastTakenDate == automaticallyRecordedLastTakenDate) && + (identical(other.deletedPillSheet, deletedPillSheet) || other.deletedPillSheet == deletedPillSheet) && + (identical(other.takenPill, takenPill) || other.takenPill == takenPill) && + (identical(other.revertTakenPill, revertTakenPill) || other.revertTakenPill == revertTakenPill) && + (identical(other.changedPillNumber, changedPillNumber) || other.changedPillNumber == changedPillNumber) && + (identical(other.endedPillSheet, endedPillSheet) || other.endedPillSheet == endedPillSheet) && + (identical(other.beganRestDurationValue, beganRestDurationValue) || other.beganRestDurationValue == beganRestDurationValue) && + (identical(other.endedRestDurationValue, endedRestDurationValue) || other.endedRestDurationValue == endedRestDurationValue) && + (identical(other.changedRestDurationBeginDateValue, changedRestDurationBeginDateValue) || + other.changedRestDurationBeginDateValue == changedRestDurationBeginDateValue) && + (identical(other.changedRestDurationValue, changedRestDurationValue) || other.changedRestDurationValue == changedRestDurationValue) && + (identical(other.changedBeginDisplayNumber, changedBeginDisplayNumber) || other.changedBeginDisplayNumber == changedBeginDisplayNumber) && + (identical(other.changedEndDisplayNumber, changedEndDisplayNumber) || other.changedEndDisplayNumber == changedEndDisplayNumber)); } @JsonKey(ignore: true) @@ -625,10 +556,8 @@ class _$PillSheetModifiedHistoryValueImpl @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$PillSheetModifiedHistoryValueImplCopyWith< - _$PillSheetModifiedHistoryValueImpl> - get copyWith => __$$PillSheetModifiedHistoryValueImplCopyWithImpl< - _$PillSheetModifiedHistoryValueImpl>(this, _$identity); + _$$PillSheetModifiedHistoryValueImplCopyWith<_$PillSheetModifiedHistoryValueImpl> get copyWith => + __$$PillSheetModifiedHistoryValueImplCopyWithImpl<_$PillSheetModifiedHistoryValueImpl>(this, _$identity); @override Map toJson() { @@ -638,35 +567,29 @@ class _$PillSheetModifiedHistoryValueImpl } } -abstract class _PillSheetModifiedHistoryValue - extends PillSheetModifiedHistoryValue { +abstract class _PillSheetModifiedHistoryValue extends PillSheetModifiedHistoryValue { const factory _PillSheetModifiedHistoryValue( - {final CreatedPillSheetValue? createdPillSheet, - final AutomaticallyRecordedLastTakenDateValue? - automaticallyRecordedLastTakenDate, - final DeletedPillSheetValue? deletedPillSheet, - final TakenPillValue? takenPill, - final RevertTakenPillValue? revertTakenPill, - final ChangedPillNumberValue? changedPillNumber, - final EndedPillSheetValue? endedPillSheet, - final BeganRestDurationValue? beganRestDurationValue, - final EndedRestDurationValue? endedRestDurationValue, - final ChangedRestDurationBeginDateValue? - changedRestDurationBeginDateValue, - final ChangedRestDurationValue? changedRestDurationValue, - final ChangedBeginDisplayNumberValue? changedBeginDisplayNumber, - final ChangedEndDisplayNumberValue? changedEndDisplayNumber}) = - _$PillSheetModifiedHistoryValueImpl; + {final CreatedPillSheetValue? createdPillSheet, + final AutomaticallyRecordedLastTakenDateValue? automaticallyRecordedLastTakenDate, + final DeletedPillSheetValue? deletedPillSheet, + final TakenPillValue? takenPill, + final RevertTakenPillValue? revertTakenPill, + final ChangedPillNumberValue? changedPillNumber, + final EndedPillSheetValue? endedPillSheet, + final BeganRestDurationValue? beganRestDurationValue, + final EndedRestDurationValue? endedRestDurationValue, + final ChangedRestDurationBeginDateValue? changedRestDurationBeginDateValue, + final ChangedRestDurationValue? changedRestDurationValue, + final ChangedBeginDisplayNumberValue? changedBeginDisplayNumber, + final ChangedEndDisplayNumberValue? changedEndDisplayNumber}) = _$PillSheetModifiedHistoryValueImpl; const _PillSheetModifiedHistoryValue._() : super._(); - factory _PillSheetModifiedHistoryValue.fromJson(Map json) = - _$PillSheetModifiedHistoryValueImpl.fromJson; + factory _PillSheetModifiedHistoryValue.fromJson(Map json) = _$PillSheetModifiedHistoryValueImpl.fromJson; @override CreatedPillSheetValue? get createdPillSheet; @override - AutomaticallyRecordedLastTakenDateValue? - get automaticallyRecordedLastTakenDate; + AutomaticallyRecordedLastTakenDateValue? get automaticallyRecordedLastTakenDate; @override DeletedPillSheetValue? get deletedPillSheet; @override @@ -691,13 +614,10 @@ abstract class _PillSheetModifiedHistoryValue ChangedEndDisplayNumberValue? get changedEndDisplayNumber; @override @JsonKey(ignore: true) - _$$PillSheetModifiedHistoryValueImplCopyWith< - _$PillSheetModifiedHistoryValueImpl> - get copyWith => throw _privateConstructorUsedError; + _$$PillSheetModifiedHistoryValueImplCopyWith<_$PillSheetModifiedHistoryValueImpl> get copyWith => throw _privateConstructorUsedError; } -CreatedPillSheetValue _$CreatedPillSheetValueFromJson( - Map json) { +CreatedPillSheetValue _$CreatedPillSheetValueFromJson(Map json) { return _CreatedPillSheetValue.fromJson(json); } @@ -705,36 +625,28 @@ CreatedPillSheetValue _$CreatedPillSheetValueFromJson( mixin _$CreatedPillSheetValue { // The below properties are deprecated and added since v1. // This is deprecated property. TODO: [PillSheetModifiedHistory-V2] delete after 2024-05-01 - @JsonKey( - fromJson: NonNullTimestampConverter.timestampToDateTime, - toJson: NonNullTimestampConverter.dateTimeToTimestamp) + @JsonKey(fromJson: NonNullTimestampConverter.timestampToDateTime, toJson: NonNullTimestampConverter.dateTimeToTimestamp) DateTime get pillSheetCreatedAt => throw _privateConstructorUsedError; List get pillSheetIDs => throw _privateConstructorUsedError; Map toJson() => throw _privateConstructorUsedError; @JsonKey(ignore: true) - $CreatedPillSheetValueCopyWith get copyWith => - throw _privateConstructorUsedError; + $CreatedPillSheetValueCopyWith get copyWith => throw _privateConstructorUsedError; } /// @nodoc abstract class $CreatedPillSheetValueCopyWith<$Res> { - factory $CreatedPillSheetValueCopyWith(CreatedPillSheetValue value, - $Res Function(CreatedPillSheetValue) then) = + factory $CreatedPillSheetValueCopyWith(CreatedPillSheetValue value, $Res Function(CreatedPillSheetValue) then) = _$CreatedPillSheetValueCopyWithImpl<$Res, CreatedPillSheetValue>; @useResult $Res call( - {@JsonKey( - fromJson: NonNullTimestampConverter.timestampToDateTime, - toJson: NonNullTimestampConverter.dateTimeToTimestamp) + {@JsonKey(fromJson: NonNullTimestampConverter.timestampToDateTime, toJson: NonNullTimestampConverter.dateTimeToTimestamp) DateTime pillSheetCreatedAt, List pillSheetIDs}); } /// @nodoc -class _$CreatedPillSheetValueCopyWithImpl<$Res, - $Val extends CreatedPillSheetValue> - implements $CreatedPillSheetValueCopyWith<$Res> { +class _$CreatedPillSheetValueCopyWithImpl<$Res, $Val extends CreatedPillSheetValue> implements $CreatedPillSheetValueCopyWith<$Res> { _$CreatedPillSheetValueCopyWithImpl(this._value, this._then); // ignore: unused_field @@ -762,29 +674,21 @@ class _$CreatedPillSheetValueCopyWithImpl<$Res, } /// @nodoc -abstract class _$$CreatedPillSheetValueImplCopyWith<$Res> - implements $CreatedPillSheetValueCopyWith<$Res> { - factory _$$CreatedPillSheetValueImplCopyWith( - _$CreatedPillSheetValueImpl value, - $Res Function(_$CreatedPillSheetValueImpl) then) = +abstract class _$$CreatedPillSheetValueImplCopyWith<$Res> implements $CreatedPillSheetValueCopyWith<$Res> { + factory _$$CreatedPillSheetValueImplCopyWith(_$CreatedPillSheetValueImpl value, $Res Function(_$CreatedPillSheetValueImpl) then) = __$$CreatedPillSheetValueImplCopyWithImpl<$Res>; @override @useResult $Res call( - {@JsonKey( - fromJson: NonNullTimestampConverter.timestampToDateTime, - toJson: NonNullTimestampConverter.dateTimeToTimestamp) + {@JsonKey(fromJson: NonNullTimestampConverter.timestampToDateTime, toJson: NonNullTimestampConverter.dateTimeToTimestamp) DateTime pillSheetCreatedAt, List pillSheetIDs}); } /// @nodoc -class __$$CreatedPillSheetValueImplCopyWithImpl<$Res> - extends _$CreatedPillSheetValueCopyWithImpl<$Res, - _$CreatedPillSheetValueImpl> +class __$$CreatedPillSheetValueImplCopyWithImpl<$Res> extends _$CreatedPillSheetValueCopyWithImpl<$Res, _$CreatedPillSheetValueImpl> implements _$$CreatedPillSheetValueImplCopyWith<$Res> { - __$$CreatedPillSheetValueImplCopyWithImpl(_$CreatedPillSheetValueImpl _value, - $Res Function(_$CreatedPillSheetValueImpl) _then) + __$$CreatedPillSheetValueImplCopyWithImpl(_$CreatedPillSheetValueImpl _value, $Res Function(_$CreatedPillSheetValueImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -811,23 +715,18 @@ class __$$CreatedPillSheetValueImplCopyWithImpl<$Res> @JsonSerializable(explicitToJson: true) class _$CreatedPillSheetValueImpl extends _CreatedPillSheetValue { const _$CreatedPillSheetValueImpl( - {@JsonKey( - fromJson: NonNullTimestampConverter.timestampToDateTime, - toJson: NonNullTimestampConverter.dateTimeToTimestamp) + {@JsonKey(fromJson: NonNullTimestampConverter.timestampToDateTime, toJson: NonNullTimestampConverter.dateTimeToTimestamp) required this.pillSheetCreatedAt, final List pillSheetIDs = const []}) : _pillSheetIDs = pillSheetIDs, super._(); - factory _$CreatedPillSheetValueImpl.fromJson(Map json) => - _$$CreatedPillSheetValueImplFromJson(json); + factory _$CreatedPillSheetValueImpl.fromJson(Map json) => _$$CreatedPillSheetValueImplFromJson(json); // The below properties are deprecated and added since v1. // This is deprecated property. TODO: [PillSheetModifiedHistory-V2] delete after 2024-05-01 @override - @JsonKey( - fromJson: NonNullTimestampConverter.timestampToDateTime, - toJson: NonNullTimestampConverter.dateTimeToTimestamp) + @JsonKey(fromJson: NonNullTimestampConverter.timestampToDateTime, toJson: NonNullTimestampConverter.dateTimeToTimestamp) final DateTime pillSheetCreatedAt; final List _pillSheetIDs; @override @@ -848,23 +747,19 @@ class _$CreatedPillSheetValueImpl extends _CreatedPillSheetValue { return identical(this, other) || (other.runtimeType == runtimeType && other is _$CreatedPillSheetValueImpl && - (identical(other.pillSheetCreatedAt, pillSheetCreatedAt) || - other.pillSheetCreatedAt == pillSheetCreatedAt) && - const DeepCollectionEquality() - .equals(other._pillSheetIDs, _pillSheetIDs)); + (identical(other.pillSheetCreatedAt, pillSheetCreatedAt) || other.pillSheetCreatedAt == pillSheetCreatedAt) && + const DeepCollectionEquality().equals(other._pillSheetIDs, _pillSheetIDs)); } @JsonKey(ignore: true) @override - int get hashCode => Object.hash(runtimeType, pillSheetCreatedAt, - const DeepCollectionEquality().hash(_pillSheetIDs)); + int get hashCode => Object.hash(runtimeType, pillSheetCreatedAt, const DeepCollectionEquality().hash(_pillSheetIDs)); @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$CreatedPillSheetValueImplCopyWith<_$CreatedPillSheetValueImpl> - get copyWith => __$$CreatedPillSheetValueImplCopyWithImpl< - _$CreatedPillSheetValueImpl>(this, _$identity); + _$$CreatedPillSheetValueImplCopyWith<_$CreatedPillSheetValueImpl> get copyWith => + __$$CreatedPillSheetValueImplCopyWithImpl<_$CreatedPillSheetValueImpl>(this, _$identity); @override Map toJson() { @@ -876,33 +771,25 @@ class _$CreatedPillSheetValueImpl extends _CreatedPillSheetValue { abstract class _CreatedPillSheetValue extends CreatedPillSheetValue { const factory _CreatedPillSheetValue( - {@JsonKey( - fromJson: NonNullTimestampConverter.timestampToDateTime, - toJson: NonNullTimestampConverter.dateTimeToTimestamp) + {@JsonKey(fromJson: NonNullTimestampConverter.timestampToDateTime, toJson: NonNullTimestampConverter.dateTimeToTimestamp) required final DateTime pillSheetCreatedAt, final List pillSheetIDs}) = _$CreatedPillSheetValueImpl; const _CreatedPillSheetValue._() : super._(); - factory _CreatedPillSheetValue.fromJson(Map json) = - _$CreatedPillSheetValueImpl.fromJson; + factory _CreatedPillSheetValue.fromJson(Map json) = _$CreatedPillSheetValueImpl.fromJson; @override // The below properties are deprecated and added since v1. // This is deprecated property. TODO: [PillSheetModifiedHistory-V2] delete after 2024-05-01 - @JsonKey( - fromJson: NonNullTimestampConverter.timestampToDateTime, - toJson: NonNullTimestampConverter.dateTimeToTimestamp) + @JsonKey(fromJson: NonNullTimestampConverter.timestampToDateTime, toJson: NonNullTimestampConverter.dateTimeToTimestamp) DateTime get pillSheetCreatedAt; @override List get pillSheetIDs; @override @JsonKey(ignore: true) - _$$CreatedPillSheetValueImplCopyWith<_$CreatedPillSheetValueImpl> - get copyWith => throw _privateConstructorUsedError; + _$$CreatedPillSheetValueImplCopyWith<_$CreatedPillSheetValueImpl> get copyWith => throw _privateConstructorUsedError; } -AutomaticallyRecordedLastTakenDateValue - _$AutomaticallyRecordedLastTakenDateValueFromJson( - Map json) { +AutomaticallyRecordedLastTakenDateValue _$AutomaticallyRecordedLastTakenDateValueFromJson(Map json) { return _AutomaticallyRecordedLastTakenDateValue.fromJson(json); } @@ -910,51 +797,36 @@ AutomaticallyRecordedLastTakenDateValue mixin _$AutomaticallyRecordedLastTakenDateValue { // The below properties are deprecated and added since v1. // This is deprecated property. TODO: [PillSheetModifiedHistory-V2] delete after 2024-05-01 - @JsonKey( - fromJson: TimestampConverter.timestampToDateTime, - toJson: TimestampConverter.dateTimeToTimestamp) + @JsonKey(fromJson: TimestampConverter.timestampToDateTime, toJson: TimestampConverter.dateTimeToTimestamp) DateTime? get beforeLastTakenDate => throw _privateConstructorUsedError; - @JsonKey( - fromJson: NonNullTimestampConverter.timestampToDateTime, - toJson: NonNullTimestampConverter.dateTimeToTimestamp) + @JsonKey(fromJson: NonNullTimestampConverter.timestampToDateTime, toJson: NonNullTimestampConverter.dateTimeToTimestamp) DateTime get afterLastTakenDate => throw _privateConstructorUsedError; int get beforeLastTakenPillNumber => throw _privateConstructorUsedError; int get afterLastTakenPillNumber => throw _privateConstructorUsedError; Map toJson() => throw _privateConstructorUsedError; @JsonKey(ignore: true) - $AutomaticallyRecordedLastTakenDateValueCopyWith< - AutomaticallyRecordedLastTakenDateValue> - get copyWith => throw _privateConstructorUsedError; + $AutomaticallyRecordedLastTakenDateValueCopyWith get copyWith => throw _privateConstructorUsedError; } /// @nodoc abstract class $AutomaticallyRecordedLastTakenDateValueCopyWith<$Res> { factory $AutomaticallyRecordedLastTakenDateValueCopyWith( - AutomaticallyRecordedLastTakenDateValue value, - $Res Function(AutomaticallyRecordedLastTakenDateValue) then) = - _$AutomaticallyRecordedLastTakenDateValueCopyWithImpl<$Res, - AutomaticallyRecordedLastTakenDateValue>; + AutomaticallyRecordedLastTakenDateValue value, $Res Function(AutomaticallyRecordedLastTakenDateValue) then) = + _$AutomaticallyRecordedLastTakenDateValueCopyWithImpl<$Res, AutomaticallyRecordedLastTakenDateValue>; @useResult $Res call( - {@JsonKey( - fromJson: TimestampConverter.timestampToDateTime, - toJson: TimestampConverter.dateTimeToTimestamp) - DateTime? beforeLastTakenDate, - @JsonKey( - fromJson: NonNullTimestampConverter.timestampToDateTime, - toJson: NonNullTimestampConverter.dateTimeToTimestamp) + {@JsonKey(fromJson: TimestampConverter.timestampToDateTime, toJson: TimestampConverter.dateTimeToTimestamp) DateTime? beforeLastTakenDate, + @JsonKey(fromJson: NonNullTimestampConverter.timestampToDateTime, toJson: NonNullTimestampConverter.dateTimeToTimestamp) DateTime afterLastTakenDate, int beforeLastTakenPillNumber, int afterLastTakenPillNumber}); } /// @nodoc -class _$AutomaticallyRecordedLastTakenDateValueCopyWithImpl<$Res, - $Val extends AutomaticallyRecordedLastTakenDateValue> +class _$AutomaticallyRecordedLastTakenDateValueCopyWithImpl<$Res, $Val extends AutomaticallyRecordedLastTakenDateValue> implements $AutomaticallyRecordedLastTakenDateValueCopyWith<$Res> { - _$AutomaticallyRecordedLastTakenDateValueCopyWithImpl( - this._value, this._then); + _$AutomaticallyRecordedLastTakenDateValueCopyWithImpl(this._value, this._then); // ignore: unused_field final $Val _value; @@ -991,22 +863,15 @@ class _$AutomaticallyRecordedLastTakenDateValueCopyWithImpl<$Res, } /// @nodoc -abstract class _$$AutomaticallyRecordedLastTakenDateValueImplCopyWith<$Res> - implements $AutomaticallyRecordedLastTakenDateValueCopyWith<$Res> { +abstract class _$$AutomaticallyRecordedLastTakenDateValueImplCopyWith<$Res> implements $AutomaticallyRecordedLastTakenDateValueCopyWith<$Res> { factory _$$AutomaticallyRecordedLastTakenDateValueImplCopyWith( - _$AutomaticallyRecordedLastTakenDateValueImpl value, - $Res Function(_$AutomaticallyRecordedLastTakenDateValueImpl) then) = + _$AutomaticallyRecordedLastTakenDateValueImpl value, $Res Function(_$AutomaticallyRecordedLastTakenDateValueImpl) then) = __$$AutomaticallyRecordedLastTakenDateValueImplCopyWithImpl<$Res>; @override @useResult $Res call( - {@JsonKey( - fromJson: TimestampConverter.timestampToDateTime, - toJson: TimestampConverter.dateTimeToTimestamp) - DateTime? beforeLastTakenDate, - @JsonKey( - fromJson: NonNullTimestampConverter.timestampToDateTime, - toJson: NonNullTimestampConverter.dateTimeToTimestamp) + {@JsonKey(fromJson: TimestampConverter.timestampToDateTime, toJson: TimestampConverter.dateTimeToTimestamp) DateTime? beforeLastTakenDate, + @JsonKey(fromJson: NonNullTimestampConverter.timestampToDateTime, toJson: NonNullTimestampConverter.dateTimeToTimestamp) DateTime afterLastTakenDate, int beforeLastTakenPillNumber, int afterLastTakenPillNumber}); @@ -1014,12 +879,10 @@ abstract class _$$AutomaticallyRecordedLastTakenDateValueImplCopyWith<$Res> /// @nodoc class __$$AutomaticallyRecordedLastTakenDateValueImplCopyWithImpl<$Res> - extends _$AutomaticallyRecordedLastTakenDateValueCopyWithImpl<$Res, - _$AutomaticallyRecordedLastTakenDateValueImpl> + extends _$AutomaticallyRecordedLastTakenDateValueCopyWithImpl<$Res, _$AutomaticallyRecordedLastTakenDateValueImpl> implements _$$AutomaticallyRecordedLastTakenDateValueImplCopyWith<$Res> { __$$AutomaticallyRecordedLastTakenDateValueImplCopyWithImpl( - _$AutomaticallyRecordedLastTakenDateValueImpl _value, - $Res Function(_$AutomaticallyRecordedLastTakenDateValueImpl) _then) + _$AutomaticallyRecordedLastTakenDateValueImpl _value, $Res Function(_$AutomaticallyRecordedLastTakenDateValueImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -1054,36 +917,25 @@ class __$$AutomaticallyRecordedLastTakenDateValueImplCopyWithImpl<$Res> /// @nodoc @JsonSerializable(explicitToJson: true) -class _$AutomaticallyRecordedLastTakenDateValueImpl - extends _AutomaticallyRecordedLastTakenDateValue { +class _$AutomaticallyRecordedLastTakenDateValueImpl extends _AutomaticallyRecordedLastTakenDateValue { const _$AutomaticallyRecordedLastTakenDateValueImpl( - {@JsonKey( - fromJson: TimestampConverter.timestampToDateTime, - toJson: TimestampConverter.dateTimeToTimestamp) - this.beforeLastTakenDate, - @JsonKey( - fromJson: NonNullTimestampConverter.timestampToDateTime, - toJson: NonNullTimestampConverter.dateTimeToTimestamp) + {@JsonKey(fromJson: TimestampConverter.timestampToDateTime, toJson: TimestampConverter.dateTimeToTimestamp) this.beforeLastTakenDate, + @JsonKey(fromJson: NonNullTimestampConverter.timestampToDateTime, toJson: NonNullTimestampConverter.dateTimeToTimestamp) required this.afterLastTakenDate, required this.beforeLastTakenPillNumber, required this.afterLastTakenPillNumber}) : super._(); - factory _$AutomaticallyRecordedLastTakenDateValueImpl.fromJson( - Map json) => + factory _$AutomaticallyRecordedLastTakenDateValueImpl.fromJson(Map json) => _$$AutomaticallyRecordedLastTakenDateValueImplFromJson(json); // The below properties are deprecated and added since v1. // This is deprecated property. TODO: [PillSheetModifiedHistory-V2] delete after 2024-05-01 @override - @JsonKey( - fromJson: TimestampConverter.timestampToDateTime, - toJson: TimestampConverter.dateTimeToTimestamp) + @JsonKey(fromJson: TimestampConverter.timestampToDateTime, toJson: TimestampConverter.dateTimeToTimestamp) final DateTime? beforeLastTakenDate; @override - @JsonKey( - fromJson: NonNullTimestampConverter.timestampToDateTime, - toJson: NonNullTimestampConverter.dateTimeToTimestamp) + @JsonKey(fromJson: NonNullTimestampConverter.timestampToDateTime, toJson: NonNullTimestampConverter.dateTimeToTimestamp) final DateTime afterLastTakenDate; @override final int beforeLastTakenPillNumber; @@ -1100,31 +952,21 @@ class _$AutomaticallyRecordedLastTakenDateValueImpl return identical(this, other) || (other.runtimeType == runtimeType && other is _$AutomaticallyRecordedLastTakenDateValueImpl && - (identical(other.beforeLastTakenDate, beforeLastTakenDate) || - other.beforeLastTakenDate == beforeLastTakenDate) && - (identical(other.afterLastTakenDate, afterLastTakenDate) || - other.afterLastTakenDate == afterLastTakenDate) && - (identical(other.beforeLastTakenPillNumber, - beforeLastTakenPillNumber) || - other.beforeLastTakenPillNumber == beforeLastTakenPillNumber) && - (identical( - other.afterLastTakenPillNumber, afterLastTakenPillNumber) || - other.afterLastTakenPillNumber == afterLastTakenPillNumber)); + (identical(other.beforeLastTakenDate, beforeLastTakenDate) || other.beforeLastTakenDate == beforeLastTakenDate) && + (identical(other.afterLastTakenDate, afterLastTakenDate) || other.afterLastTakenDate == afterLastTakenDate) && + (identical(other.beforeLastTakenPillNumber, beforeLastTakenPillNumber) || other.beforeLastTakenPillNumber == beforeLastTakenPillNumber) && + (identical(other.afterLastTakenPillNumber, afterLastTakenPillNumber) || other.afterLastTakenPillNumber == afterLastTakenPillNumber)); } @JsonKey(ignore: true) @override - int get hashCode => Object.hash(runtimeType, beforeLastTakenDate, - afterLastTakenDate, beforeLastTakenPillNumber, afterLastTakenPillNumber); + int get hashCode => Object.hash(runtimeType, beforeLastTakenDate, afterLastTakenDate, beforeLastTakenPillNumber, afterLastTakenPillNumber); @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$AutomaticallyRecordedLastTakenDateValueImplCopyWith< - _$AutomaticallyRecordedLastTakenDateValueImpl> - get copyWith => - __$$AutomaticallyRecordedLastTakenDateValueImplCopyWithImpl< - _$AutomaticallyRecordedLastTakenDateValueImpl>(this, _$identity); + _$$AutomaticallyRecordedLastTakenDateValueImplCopyWith<_$AutomaticallyRecordedLastTakenDateValueImpl> get copyWith => + __$$AutomaticallyRecordedLastTakenDateValueImplCopyWithImpl<_$AutomaticallyRecordedLastTakenDateValueImpl>(this, _$identity); @override Map toJson() { @@ -1134,36 +976,23 @@ class _$AutomaticallyRecordedLastTakenDateValueImpl } } -abstract class _AutomaticallyRecordedLastTakenDateValue - extends AutomaticallyRecordedLastTakenDateValue { +abstract class _AutomaticallyRecordedLastTakenDateValue extends AutomaticallyRecordedLastTakenDateValue { const factory _AutomaticallyRecordedLastTakenDateValue( - {@JsonKey( - fromJson: TimestampConverter.timestampToDateTime, - toJson: TimestampConverter.dateTimeToTimestamp) - final DateTime? beforeLastTakenDate, - @JsonKey( - fromJson: NonNullTimestampConverter.timestampToDateTime, - toJson: NonNullTimestampConverter.dateTimeToTimestamp) - required final DateTime afterLastTakenDate, - required final int beforeLastTakenPillNumber, - required final int afterLastTakenPillNumber}) = - _$AutomaticallyRecordedLastTakenDateValueImpl; + {@JsonKey(fromJson: TimestampConverter.timestampToDateTime, toJson: TimestampConverter.dateTimeToTimestamp) final DateTime? beforeLastTakenDate, + @JsonKey(fromJson: NonNullTimestampConverter.timestampToDateTime, toJson: NonNullTimestampConverter.dateTimeToTimestamp) + required final DateTime afterLastTakenDate, + required final int beforeLastTakenPillNumber, + required final int afterLastTakenPillNumber}) = _$AutomaticallyRecordedLastTakenDateValueImpl; const _AutomaticallyRecordedLastTakenDateValue._() : super._(); - factory _AutomaticallyRecordedLastTakenDateValue.fromJson( - Map json) = - _$AutomaticallyRecordedLastTakenDateValueImpl.fromJson; + factory _AutomaticallyRecordedLastTakenDateValue.fromJson(Map json) = _$AutomaticallyRecordedLastTakenDateValueImpl.fromJson; @override // The below properties are deprecated and added since v1. // This is deprecated property. TODO: [PillSheetModifiedHistory-V2] delete after 2024-05-01 - @JsonKey( - fromJson: TimestampConverter.timestampToDateTime, - toJson: TimestampConverter.dateTimeToTimestamp) + @JsonKey(fromJson: TimestampConverter.timestampToDateTime, toJson: TimestampConverter.dateTimeToTimestamp) DateTime? get beforeLastTakenDate; @override - @JsonKey( - fromJson: NonNullTimestampConverter.timestampToDateTime, - toJson: NonNullTimestampConverter.dateTimeToTimestamp) + @JsonKey(fromJson: NonNullTimestampConverter.timestampToDateTime, toJson: NonNullTimestampConverter.dateTimeToTimestamp) DateTime get afterLastTakenDate; @override int get beforeLastTakenPillNumber; @@ -1171,13 +1000,11 @@ abstract class _AutomaticallyRecordedLastTakenDateValue int get afterLastTakenPillNumber; @override @JsonKey(ignore: true) - _$$AutomaticallyRecordedLastTakenDateValueImplCopyWith< - _$AutomaticallyRecordedLastTakenDateValueImpl> - get copyWith => throw _privateConstructorUsedError; + _$$AutomaticallyRecordedLastTakenDateValueImplCopyWith<_$AutomaticallyRecordedLastTakenDateValueImpl> get copyWith => + throw _privateConstructorUsedError; } -DeletedPillSheetValue _$DeletedPillSheetValueFromJson( - Map json) { +DeletedPillSheetValue _$DeletedPillSheetValueFromJson(Map json) { return _DeletedPillSheetValue.fromJson(json); } @@ -1185,36 +1012,28 @@ DeletedPillSheetValue _$DeletedPillSheetValueFromJson( mixin _$DeletedPillSheetValue { // The below properties are deprecated and added since v1. // This is deprecated property. TODO: [PillSheetModifiedHistory-V2] delete after 2024-05-01 - @JsonKey( - fromJson: NonNullTimestampConverter.timestampToDateTime, - toJson: NonNullTimestampConverter.dateTimeToTimestamp) + @JsonKey(fromJson: NonNullTimestampConverter.timestampToDateTime, toJson: NonNullTimestampConverter.dateTimeToTimestamp) DateTime get pillSheetDeletedAt => throw _privateConstructorUsedError; List get pillSheetIDs => throw _privateConstructorUsedError; Map toJson() => throw _privateConstructorUsedError; @JsonKey(ignore: true) - $DeletedPillSheetValueCopyWith get copyWith => - throw _privateConstructorUsedError; + $DeletedPillSheetValueCopyWith get copyWith => throw _privateConstructorUsedError; } /// @nodoc abstract class $DeletedPillSheetValueCopyWith<$Res> { - factory $DeletedPillSheetValueCopyWith(DeletedPillSheetValue value, - $Res Function(DeletedPillSheetValue) then) = + factory $DeletedPillSheetValueCopyWith(DeletedPillSheetValue value, $Res Function(DeletedPillSheetValue) then) = _$DeletedPillSheetValueCopyWithImpl<$Res, DeletedPillSheetValue>; @useResult $Res call( - {@JsonKey( - fromJson: NonNullTimestampConverter.timestampToDateTime, - toJson: NonNullTimestampConverter.dateTimeToTimestamp) + {@JsonKey(fromJson: NonNullTimestampConverter.timestampToDateTime, toJson: NonNullTimestampConverter.dateTimeToTimestamp) DateTime pillSheetDeletedAt, List pillSheetIDs}); } /// @nodoc -class _$DeletedPillSheetValueCopyWithImpl<$Res, - $Val extends DeletedPillSheetValue> - implements $DeletedPillSheetValueCopyWith<$Res> { +class _$DeletedPillSheetValueCopyWithImpl<$Res, $Val extends DeletedPillSheetValue> implements $DeletedPillSheetValueCopyWith<$Res> { _$DeletedPillSheetValueCopyWithImpl(this._value, this._then); // ignore: unused_field @@ -1242,29 +1061,21 @@ class _$DeletedPillSheetValueCopyWithImpl<$Res, } /// @nodoc -abstract class _$$DeletedPillSheetValueImplCopyWith<$Res> - implements $DeletedPillSheetValueCopyWith<$Res> { - factory _$$DeletedPillSheetValueImplCopyWith( - _$DeletedPillSheetValueImpl value, - $Res Function(_$DeletedPillSheetValueImpl) then) = +abstract class _$$DeletedPillSheetValueImplCopyWith<$Res> implements $DeletedPillSheetValueCopyWith<$Res> { + factory _$$DeletedPillSheetValueImplCopyWith(_$DeletedPillSheetValueImpl value, $Res Function(_$DeletedPillSheetValueImpl) then) = __$$DeletedPillSheetValueImplCopyWithImpl<$Res>; @override @useResult $Res call( - {@JsonKey( - fromJson: NonNullTimestampConverter.timestampToDateTime, - toJson: NonNullTimestampConverter.dateTimeToTimestamp) + {@JsonKey(fromJson: NonNullTimestampConverter.timestampToDateTime, toJson: NonNullTimestampConverter.dateTimeToTimestamp) DateTime pillSheetDeletedAt, List pillSheetIDs}); } /// @nodoc -class __$$DeletedPillSheetValueImplCopyWithImpl<$Res> - extends _$DeletedPillSheetValueCopyWithImpl<$Res, - _$DeletedPillSheetValueImpl> +class __$$DeletedPillSheetValueImplCopyWithImpl<$Res> extends _$DeletedPillSheetValueCopyWithImpl<$Res, _$DeletedPillSheetValueImpl> implements _$$DeletedPillSheetValueImplCopyWith<$Res> { - __$$DeletedPillSheetValueImplCopyWithImpl(_$DeletedPillSheetValueImpl _value, - $Res Function(_$DeletedPillSheetValueImpl) _then) + __$$DeletedPillSheetValueImplCopyWithImpl(_$DeletedPillSheetValueImpl _value, $Res Function(_$DeletedPillSheetValueImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -1291,23 +1102,18 @@ class __$$DeletedPillSheetValueImplCopyWithImpl<$Res> @JsonSerializable(explicitToJson: true) class _$DeletedPillSheetValueImpl extends _DeletedPillSheetValue { const _$DeletedPillSheetValueImpl( - {@JsonKey( - fromJson: NonNullTimestampConverter.timestampToDateTime, - toJson: NonNullTimestampConverter.dateTimeToTimestamp) + {@JsonKey(fromJson: NonNullTimestampConverter.timestampToDateTime, toJson: NonNullTimestampConverter.dateTimeToTimestamp) required this.pillSheetDeletedAt, final List pillSheetIDs = const []}) : _pillSheetIDs = pillSheetIDs, super._(); - factory _$DeletedPillSheetValueImpl.fromJson(Map json) => - _$$DeletedPillSheetValueImplFromJson(json); + factory _$DeletedPillSheetValueImpl.fromJson(Map json) => _$$DeletedPillSheetValueImplFromJson(json); // The below properties are deprecated and added since v1. // This is deprecated property. TODO: [PillSheetModifiedHistory-V2] delete after 2024-05-01 @override - @JsonKey( - fromJson: NonNullTimestampConverter.timestampToDateTime, - toJson: NonNullTimestampConverter.dateTimeToTimestamp) + @JsonKey(fromJson: NonNullTimestampConverter.timestampToDateTime, toJson: NonNullTimestampConverter.dateTimeToTimestamp) final DateTime pillSheetDeletedAt; final List _pillSheetIDs; @override @@ -1328,23 +1134,19 @@ class _$DeletedPillSheetValueImpl extends _DeletedPillSheetValue { return identical(this, other) || (other.runtimeType == runtimeType && other is _$DeletedPillSheetValueImpl && - (identical(other.pillSheetDeletedAt, pillSheetDeletedAt) || - other.pillSheetDeletedAt == pillSheetDeletedAt) && - const DeepCollectionEquality() - .equals(other._pillSheetIDs, _pillSheetIDs)); + (identical(other.pillSheetDeletedAt, pillSheetDeletedAt) || other.pillSheetDeletedAt == pillSheetDeletedAt) && + const DeepCollectionEquality().equals(other._pillSheetIDs, _pillSheetIDs)); } @JsonKey(ignore: true) @override - int get hashCode => Object.hash(runtimeType, pillSheetDeletedAt, - const DeepCollectionEquality().hash(_pillSheetIDs)); + int get hashCode => Object.hash(runtimeType, pillSheetDeletedAt, const DeepCollectionEquality().hash(_pillSheetIDs)); @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$DeletedPillSheetValueImplCopyWith<_$DeletedPillSheetValueImpl> - get copyWith => __$$DeletedPillSheetValueImplCopyWithImpl< - _$DeletedPillSheetValueImpl>(this, _$identity); + _$$DeletedPillSheetValueImplCopyWith<_$DeletedPillSheetValueImpl> get copyWith => + __$$DeletedPillSheetValueImplCopyWithImpl<_$DeletedPillSheetValueImpl>(this, _$identity); @override Map toJson() { @@ -1356,28 +1158,22 @@ class _$DeletedPillSheetValueImpl extends _DeletedPillSheetValue { abstract class _DeletedPillSheetValue extends DeletedPillSheetValue { const factory _DeletedPillSheetValue( - {@JsonKey( - fromJson: NonNullTimestampConverter.timestampToDateTime, - toJson: NonNullTimestampConverter.dateTimeToTimestamp) + {@JsonKey(fromJson: NonNullTimestampConverter.timestampToDateTime, toJson: NonNullTimestampConverter.dateTimeToTimestamp) required final DateTime pillSheetDeletedAt, final List pillSheetIDs}) = _$DeletedPillSheetValueImpl; const _DeletedPillSheetValue._() : super._(); - factory _DeletedPillSheetValue.fromJson(Map json) = - _$DeletedPillSheetValueImpl.fromJson; + factory _DeletedPillSheetValue.fromJson(Map json) = _$DeletedPillSheetValueImpl.fromJson; @override // The below properties are deprecated and added since v1. // This is deprecated property. TODO: [PillSheetModifiedHistory-V2] delete after 2024-05-01 - @JsonKey( - fromJson: NonNullTimestampConverter.timestampToDateTime, - toJson: NonNullTimestampConverter.dateTimeToTimestamp) + @JsonKey(fromJson: NonNullTimestampConverter.timestampToDateTime, toJson: NonNullTimestampConverter.dateTimeToTimestamp) DateTime get pillSheetDeletedAt; @override List get pillSheetIDs; @override @JsonKey(ignore: true) - _$$DeletedPillSheetValueImplCopyWith<_$DeletedPillSheetValueImpl> - get copyWith => throw _privateConstructorUsedError; + _$$DeletedPillSheetValueImplCopyWith<_$DeletedPillSheetValueImpl> get copyWith => throw _privateConstructorUsedError; } TakenPillValue _$TakenPillValueFromJson(Map json) { @@ -1389,43 +1185,30 @@ mixin _$TakenPillValue { // ============ BEGIN: Added since v1 ============ // null => 途中から追加したプロパティなので、どちらか不明 bool? get isQuickRecord => throw _privateConstructorUsedError; - TakenPillEditedValue? get edited => - throw _privateConstructorUsedError; // ============ END: Added since v1 ============ + TakenPillEditedValue? get edited => throw _privateConstructorUsedError; // ============ END: Added since v1 ============ // The below properties are deprecated and added since v1. // This is deprecated property. TODO: [PillSheetModifiedHistory-V2] delete after 2024-05-01 - @JsonKey( - fromJson: TimestampConverter.timestampToDateTime, - toJson: TimestampConverter.dateTimeToTimestamp) + @JsonKey(fromJson: TimestampConverter.timestampToDateTime, toJson: TimestampConverter.dateTimeToTimestamp) DateTime? get beforeLastTakenDate => throw _privateConstructorUsedError; - @JsonKey( - fromJson: NonNullTimestampConverter.timestampToDateTime, - toJson: NonNullTimestampConverter.dateTimeToTimestamp) + @JsonKey(fromJson: NonNullTimestampConverter.timestampToDateTime, toJson: NonNullTimestampConverter.dateTimeToTimestamp) DateTime get afterLastTakenDate => throw _privateConstructorUsedError; int get beforeLastTakenPillNumber => throw _privateConstructorUsedError; int get afterLastTakenPillNumber => throw _privateConstructorUsedError; Map toJson() => throw _privateConstructorUsedError; @JsonKey(ignore: true) - $TakenPillValueCopyWith get copyWith => - throw _privateConstructorUsedError; + $TakenPillValueCopyWith get copyWith => throw _privateConstructorUsedError; } /// @nodoc abstract class $TakenPillValueCopyWith<$Res> { - factory $TakenPillValueCopyWith( - TakenPillValue value, $Res Function(TakenPillValue) then) = - _$TakenPillValueCopyWithImpl<$Res, TakenPillValue>; + factory $TakenPillValueCopyWith(TakenPillValue value, $Res Function(TakenPillValue) then) = _$TakenPillValueCopyWithImpl<$Res, TakenPillValue>; @useResult $Res call( {bool? isQuickRecord, TakenPillEditedValue? edited, - @JsonKey( - fromJson: TimestampConverter.timestampToDateTime, - toJson: TimestampConverter.dateTimeToTimestamp) - DateTime? beforeLastTakenDate, - @JsonKey( - fromJson: NonNullTimestampConverter.timestampToDateTime, - toJson: NonNullTimestampConverter.dateTimeToTimestamp) + @JsonKey(fromJson: TimestampConverter.timestampToDateTime, toJson: TimestampConverter.dateTimeToTimestamp) DateTime? beforeLastTakenDate, + @JsonKey(fromJson: NonNullTimestampConverter.timestampToDateTime, toJson: NonNullTimestampConverter.dateTimeToTimestamp) DateTime afterLastTakenDate, int beforeLastTakenPillNumber, int afterLastTakenPillNumber}); @@ -1434,8 +1217,7 @@ abstract class $TakenPillValueCopyWith<$Res> { } /// @nodoc -class _$TakenPillValueCopyWithImpl<$Res, $Val extends TakenPillValue> - implements $TakenPillValueCopyWith<$Res> { +class _$TakenPillValueCopyWithImpl<$Res, $Val extends TakenPillValue> implements $TakenPillValueCopyWith<$Res> { _$TakenPillValueCopyWithImpl(this._value, this._then); // ignore: unused_field @@ -1495,23 +1277,16 @@ class _$TakenPillValueCopyWithImpl<$Res, $Val extends TakenPillValue> } /// @nodoc -abstract class _$$TakenPillValueImplCopyWith<$Res> - implements $TakenPillValueCopyWith<$Res> { - factory _$$TakenPillValueImplCopyWith(_$TakenPillValueImpl value, - $Res Function(_$TakenPillValueImpl) then) = +abstract class _$$TakenPillValueImplCopyWith<$Res> implements $TakenPillValueCopyWith<$Res> { + factory _$$TakenPillValueImplCopyWith(_$TakenPillValueImpl value, $Res Function(_$TakenPillValueImpl) then) = __$$TakenPillValueImplCopyWithImpl<$Res>; @override @useResult $Res call( {bool? isQuickRecord, TakenPillEditedValue? edited, - @JsonKey( - fromJson: TimestampConverter.timestampToDateTime, - toJson: TimestampConverter.dateTimeToTimestamp) - DateTime? beforeLastTakenDate, - @JsonKey( - fromJson: NonNullTimestampConverter.timestampToDateTime, - toJson: NonNullTimestampConverter.dateTimeToTimestamp) + @JsonKey(fromJson: TimestampConverter.timestampToDateTime, toJson: TimestampConverter.dateTimeToTimestamp) DateTime? beforeLastTakenDate, + @JsonKey(fromJson: NonNullTimestampConverter.timestampToDateTime, toJson: NonNullTimestampConverter.dateTimeToTimestamp) DateTime afterLastTakenDate, int beforeLastTakenPillNumber, int afterLastTakenPillNumber}); @@ -1521,12 +1296,9 @@ abstract class _$$TakenPillValueImplCopyWith<$Res> } /// @nodoc -class __$$TakenPillValueImplCopyWithImpl<$Res> - extends _$TakenPillValueCopyWithImpl<$Res, _$TakenPillValueImpl> +class __$$TakenPillValueImplCopyWithImpl<$Res> extends _$TakenPillValueCopyWithImpl<$Res, _$TakenPillValueImpl> implements _$$TakenPillValueImplCopyWith<$Res> { - __$$TakenPillValueImplCopyWithImpl( - _$TakenPillValueImpl _value, $Res Function(_$TakenPillValueImpl) _then) - : super(_value, _then); + __$$TakenPillValueImplCopyWithImpl(_$TakenPillValueImpl _value, $Res Function(_$TakenPillValueImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @override @@ -1574,20 +1346,14 @@ class _$TakenPillValueImpl extends _TakenPillValue { const _$TakenPillValueImpl( {this.isQuickRecord, this.edited, - @JsonKey( - fromJson: TimestampConverter.timestampToDateTime, - toJson: TimestampConverter.dateTimeToTimestamp) - this.beforeLastTakenDate, - @JsonKey( - fromJson: NonNullTimestampConverter.timestampToDateTime, - toJson: NonNullTimestampConverter.dateTimeToTimestamp) + @JsonKey(fromJson: TimestampConverter.timestampToDateTime, toJson: TimestampConverter.dateTimeToTimestamp) this.beforeLastTakenDate, + @JsonKey(fromJson: NonNullTimestampConverter.timestampToDateTime, toJson: NonNullTimestampConverter.dateTimeToTimestamp) required this.afterLastTakenDate, required this.beforeLastTakenPillNumber, required this.afterLastTakenPillNumber}) : super._(); - factory _$TakenPillValueImpl.fromJson(Map json) => - _$$TakenPillValueImplFromJson(json); + factory _$TakenPillValueImpl.fromJson(Map json) => _$$TakenPillValueImplFromJson(json); // ============ BEGIN: Added since v1 ============ // null => 途中から追加したプロパティなので、どちらか不明 @@ -1599,14 +1365,10 @@ class _$TakenPillValueImpl extends _TakenPillValue { // The below properties are deprecated and added since v1. // This is deprecated property. TODO: [PillSheetModifiedHistory-V2] delete after 2024-05-01 @override - @JsonKey( - fromJson: TimestampConverter.timestampToDateTime, - toJson: TimestampConverter.dateTimeToTimestamp) + @JsonKey(fromJson: TimestampConverter.timestampToDateTime, toJson: TimestampConverter.dateTimeToTimestamp) final DateTime? beforeLastTakenDate; @override - @JsonKey( - fromJson: NonNullTimestampConverter.timestampToDateTime, - toJson: NonNullTimestampConverter.dateTimeToTimestamp) + @JsonKey(fromJson: NonNullTimestampConverter.timestampToDateTime, toJson: NonNullTimestampConverter.dateTimeToTimestamp) final DateTime afterLastTakenDate; @override final int beforeLastTakenPillNumber; @@ -1623,38 +1385,23 @@ class _$TakenPillValueImpl extends _TakenPillValue { return identical(this, other) || (other.runtimeType == runtimeType && other is _$TakenPillValueImpl && - (identical(other.isQuickRecord, isQuickRecord) || - other.isQuickRecord == isQuickRecord) && + (identical(other.isQuickRecord, isQuickRecord) || other.isQuickRecord == isQuickRecord) && (identical(other.edited, edited) || other.edited == edited) && - (identical(other.beforeLastTakenDate, beforeLastTakenDate) || - other.beforeLastTakenDate == beforeLastTakenDate) && - (identical(other.afterLastTakenDate, afterLastTakenDate) || - other.afterLastTakenDate == afterLastTakenDate) && - (identical(other.beforeLastTakenPillNumber, - beforeLastTakenPillNumber) || - other.beforeLastTakenPillNumber == beforeLastTakenPillNumber) && - (identical( - other.afterLastTakenPillNumber, afterLastTakenPillNumber) || - other.afterLastTakenPillNumber == afterLastTakenPillNumber)); + (identical(other.beforeLastTakenDate, beforeLastTakenDate) || other.beforeLastTakenDate == beforeLastTakenDate) && + (identical(other.afterLastTakenDate, afterLastTakenDate) || other.afterLastTakenDate == afterLastTakenDate) && + (identical(other.beforeLastTakenPillNumber, beforeLastTakenPillNumber) || other.beforeLastTakenPillNumber == beforeLastTakenPillNumber) && + (identical(other.afterLastTakenPillNumber, afterLastTakenPillNumber) || other.afterLastTakenPillNumber == afterLastTakenPillNumber)); } @JsonKey(ignore: true) @override - int get hashCode => Object.hash( - runtimeType, - isQuickRecord, - edited, - beforeLastTakenDate, - afterLastTakenDate, - beforeLastTakenPillNumber, - afterLastTakenPillNumber); + int get hashCode => + Object.hash(runtimeType, isQuickRecord, edited, beforeLastTakenDate, afterLastTakenDate, beforeLastTakenPillNumber, afterLastTakenPillNumber); @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$TakenPillValueImplCopyWith<_$TakenPillValueImpl> get copyWith => - __$$TakenPillValueImplCopyWithImpl<_$TakenPillValueImpl>( - this, _$identity); + _$$TakenPillValueImplCopyWith<_$TakenPillValueImpl> get copyWith => __$$TakenPillValueImplCopyWithImpl<_$TakenPillValueImpl>(this, _$identity); @override Map toJson() { @@ -1668,20 +1415,14 @@ abstract class _TakenPillValue extends TakenPillValue { const factory _TakenPillValue( {final bool? isQuickRecord, final TakenPillEditedValue? edited, - @JsonKey( - fromJson: TimestampConverter.timestampToDateTime, - toJson: TimestampConverter.dateTimeToTimestamp) - final DateTime? beforeLastTakenDate, - @JsonKey( - fromJson: NonNullTimestampConverter.timestampToDateTime, - toJson: NonNullTimestampConverter.dateTimeToTimestamp) + @JsonKey(fromJson: TimestampConverter.timestampToDateTime, toJson: TimestampConverter.dateTimeToTimestamp) final DateTime? beforeLastTakenDate, + @JsonKey(fromJson: NonNullTimestampConverter.timestampToDateTime, toJson: NonNullTimestampConverter.dateTimeToTimestamp) required final DateTime afterLastTakenDate, required final int beforeLastTakenPillNumber, required final int afterLastTakenPillNumber}) = _$TakenPillValueImpl; const _TakenPillValue._() : super._(); - factory _TakenPillValue.fromJson(Map json) = - _$TakenPillValueImpl.fromJson; + factory _TakenPillValue.fromJson(Map json) = _$TakenPillValueImpl.fromJson; @override // ============ BEGIN: Added since v1 ============ // null => 途中から追加したプロパティなので、どちらか不明 @@ -1691,14 +1432,10 @@ abstract class _TakenPillValue extends TakenPillValue { @override // ============ END: Added since v1 ============ // The below properties are deprecated and added since v1. // This is deprecated property. TODO: [PillSheetModifiedHistory-V2] delete after 2024-05-01 - @JsonKey( - fromJson: TimestampConverter.timestampToDateTime, - toJson: TimestampConverter.dateTimeToTimestamp) + @JsonKey(fromJson: TimestampConverter.timestampToDateTime, toJson: TimestampConverter.dateTimeToTimestamp) DateTime? get beforeLastTakenDate; @override - @JsonKey( - fromJson: NonNullTimestampConverter.timestampToDateTime, - toJson: NonNullTimestampConverter.dateTimeToTimestamp) + @JsonKey(fromJson: NonNullTimestampConverter.timestampToDateTime, toJson: NonNullTimestampConverter.dateTimeToTimestamp) DateTime get afterLastTakenDate; @override int get beforeLastTakenPillNumber; @@ -1706,8 +1443,7 @@ abstract class _TakenPillValue extends TakenPillValue { int get afterLastTakenPillNumber; @override @JsonKey(ignore: true) - _$$TakenPillValueImplCopyWith<_$TakenPillValueImpl> get copyWith => - throw _privateConstructorUsedError; + _$$TakenPillValueImplCopyWith<_$TakenPillValueImpl> get copyWith => throw _privateConstructorUsedError; } TakenPillEditedValue _$TakenPillEditedValueFromJson(Map json) { @@ -1718,51 +1454,33 @@ TakenPillEditedValue _$TakenPillEditedValueFromJson(Map json) { mixin _$TakenPillEditedValue { // ============ BEGIN: Added since v1 ============ // 実際の服用時刻。ユーザーが編集した後の服用時刻 - @JsonKey( - fromJson: NonNullTimestampConverter.timestampToDateTime, - toJson: NonNullTimestampConverter.dateTimeToTimestamp) - DateTime get actualTakenDate => - throw _privateConstructorUsedError; // 元々の履歴がDBに書き込まれた時刻。通常はユーザーが編集する前の服用時刻 - @JsonKey( - fromJson: NonNullTimestampConverter.timestampToDateTime, - toJson: NonNullTimestampConverter.dateTimeToTimestamp) + @JsonKey(fromJson: NonNullTimestampConverter.timestampToDateTime, toJson: NonNullTimestampConverter.dateTimeToTimestamp) + DateTime get actualTakenDate => throw _privateConstructorUsedError; // 元々の履歴がDBに書き込まれた時刻。通常はユーザーが編集する前の服用時刻 + @JsonKey(fromJson: NonNullTimestampConverter.timestampToDateTime, toJson: NonNullTimestampConverter.dateTimeToTimestamp) DateTime get historyRecordedDate => throw _privateConstructorUsedError; - @JsonKey( - fromJson: NonNullTimestampConverter.timestampToDateTime, - toJson: NonNullTimestampConverter.dateTimeToTimestamp) + @JsonKey(fromJson: NonNullTimestampConverter.timestampToDateTime, toJson: NonNullTimestampConverter.dateTimeToTimestamp) DateTime get createdDate => throw _privateConstructorUsedError; Map toJson() => throw _privateConstructorUsedError; @JsonKey(ignore: true) - $TakenPillEditedValueCopyWith get copyWith => - throw _privateConstructorUsedError; + $TakenPillEditedValueCopyWith get copyWith => throw _privateConstructorUsedError; } /// @nodoc abstract class $TakenPillEditedValueCopyWith<$Res> { - factory $TakenPillEditedValueCopyWith(TakenPillEditedValue value, - $Res Function(TakenPillEditedValue) then) = + factory $TakenPillEditedValueCopyWith(TakenPillEditedValue value, $Res Function(TakenPillEditedValue) then) = _$TakenPillEditedValueCopyWithImpl<$Res, TakenPillEditedValue>; @useResult $Res call( - {@JsonKey( - fromJson: NonNullTimestampConverter.timestampToDateTime, - toJson: NonNullTimestampConverter.dateTimeToTimestamp) + {@JsonKey(fromJson: NonNullTimestampConverter.timestampToDateTime, toJson: NonNullTimestampConverter.dateTimeToTimestamp) DateTime actualTakenDate, - @JsonKey( - fromJson: NonNullTimestampConverter.timestampToDateTime, - toJson: NonNullTimestampConverter.dateTimeToTimestamp) + @JsonKey(fromJson: NonNullTimestampConverter.timestampToDateTime, toJson: NonNullTimestampConverter.dateTimeToTimestamp) DateTime historyRecordedDate, - @JsonKey( - fromJson: NonNullTimestampConverter.timestampToDateTime, - toJson: NonNullTimestampConverter.dateTimeToTimestamp) - DateTime createdDate}); + @JsonKey(fromJson: NonNullTimestampConverter.timestampToDateTime, toJson: NonNullTimestampConverter.dateTimeToTimestamp) DateTime createdDate}); } /// @nodoc -class _$TakenPillEditedValueCopyWithImpl<$Res, - $Val extends TakenPillEditedValue> - implements $TakenPillEditedValueCopyWith<$Res> { +class _$TakenPillEditedValueCopyWithImpl<$Res, $Val extends TakenPillEditedValue> implements $TakenPillEditedValueCopyWith<$Res> { _$TakenPillEditedValueCopyWithImpl(this._value, this._then); // ignore: unused_field @@ -1795,35 +1513,23 @@ class _$TakenPillEditedValueCopyWithImpl<$Res, } /// @nodoc -abstract class _$$TakenPillEditedValueImplCopyWith<$Res> - implements $TakenPillEditedValueCopyWith<$Res> { - factory _$$TakenPillEditedValueImplCopyWith(_$TakenPillEditedValueImpl value, - $Res Function(_$TakenPillEditedValueImpl) then) = +abstract class _$$TakenPillEditedValueImplCopyWith<$Res> implements $TakenPillEditedValueCopyWith<$Res> { + factory _$$TakenPillEditedValueImplCopyWith(_$TakenPillEditedValueImpl value, $Res Function(_$TakenPillEditedValueImpl) then) = __$$TakenPillEditedValueImplCopyWithImpl<$Res>; @override @useResult $Res call( - {@JsonKey( - fromJson: NonNullTimestampConverter.timestampToDateTime, - toJson: NonNullTimestampConverter.dateTimeToTimestamp) + {@JsonKey(fromJson: NonNullTimestampConverter.timestampToDateTime, toJson: NonNullTimestampConverter.dateTimeToTimestamp) DateTime actualTakenDate, - @JsonKey( - fromJson: NonNullTimestampConverter.timestampToDateTime, - toJson: NonNullTimestampConverter.dateTimeToTimestamp) + @JsonKey(fromJson: NonNullTimestampConverter.timestampToDateTime, toJson: NonNullTimestampConverter.dateTimeToTimestamp) DateTime historyRecordedDate, - @JsonKey( - fromJson: NonNullTimestampConverter.timestampToDateTime, - toJson: NonNullTimestampConverter.dateTimeToTimestamp) - DateTime createdDate}); + @JsonKey(fromJson: NonNullTimestampConverter.timestampToDateTime, toJson: NonNullTimestampConverter.dateTimeToTimestamp) DateTime createdDate}); } /// @nodoc -class __$$TakenPillEditedValueImplCopyWithImpl<$Res> - extends _$TakenPillEditedValueCopyWithImpl<$Res, _$TakenPillEditedValueImpl> +class __$$TakenPillEditedValueImplCopyWithImpl<$Res> extends _$TakenPillEditedValueCopyWithImpl<$Res, _$TakenPillEditedValueImpl> implements _$$TakenPillEditedValueImplCopyWith<$Res> { - __$$TakenPillEditedValueImplCopyWithImpl(_$TakenPillEditedValueImpl _value, - $Res Function(_$TakenPillEditedValueImpl) _then) - : super(_value, _then); + __$$TakenPillEditedValueImplCopyWithImpl(_$TakenPillEditedValueImpl _value, $Res Function(_$TakenPillEditedValueImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @override @@ -1854,40 +1560,27 @@ class __$$TakenPillEditedValueImplCopyWithImpl<$Res> @JsonSerializable(explicitToJson: true) class _$TakenPillEditedValueImpl extends _TakenPillEditedValue { const _$TakenPillEditedValueImpl( - {@JsonKey( - fromJson: NonNullTimestampConverter.timestampToDateTime, - toJson: NonNullTimestampConverter.dateTimeToTimestamp) + {@JsonKey(fromJson: NonNullTimestampConverter.timestampToDateTime, toJson: NonNullTimestampConverter.dateTimeToTimestamp) required this.actualTakenDate, - @JsonKey( - fromJson: NonNullTimestampConverter.timestampToDateTime, - toJson: NonNullTimestampConverter.dateTimeToTimestamp) + @JsonKey(fromJson: NonNullTimestampConverter.timestampToDateTime, toJson: NonNullTimestampConverter.dateTimeToTimestamp) required this.historyRecordedDate, - @JsonKey( - fromJson: NonNullTimestampConverter.timestampToDateTime, - toJson: NonNullTimestampConverter.dateTimeToTimestamp) + @JsonKey(fromJson: NonNullTimestampConverter.timestampToDateTime, toJson: NonNullTimestampConverter.dateTimeToTimestamp) required this.createdDate}) : super._(); - factory _$TakenPillEditedValueImpl.fromJson(Map json) => - _$$TakenPillEditedValueImplFromJson(json); + factory _$TakenPillEditedValueImpl.fromJson(Map json) => _$$TakenPillEditedValueImplFromJson(json); // ============ BEGIN: Added since v1 ============ // 実際の服用時刻。ユーザーが編集した後の服用時刻 @override - @JsonKey( - fromJson: NonNullTimestampConverter.timestampToDateTime, - toJson: NonNullTimestampConverter.dateTimeToTimestamp) + @JsonKey(fromJson: NonNullTimestampConverter.timestampToDateTime, toJson: NonNullTimestampConverter.dateTimeToTimestamp) final DateTime actualTakenDate; // 元々の履歴がDBに書き込まれた時刻。通常はユーザーが編集する前の服用時刻 @override - @JsonKey( - fromJson: NonNullTimestampConverter.timestampToDateTime, - toJson: NonNullTimestampConverter.dateTimeToTimestamp) + @JsonKey(fromJson: NonNullTimestampConverter.timestampToDateTime, toJson: NonNullTimestampConverter.dateTimeToTimestamp) final DateTime historyRecordedDate; @override - @JsonKey( - fromJson: NonNullTimestampConverter.timestampToDateTime, - toJson: NonNullTimestampConverter.dateTimeToTimestamp) + @JsonKey(fromJson: NonNullTimestampConverter.timestampToDateTime, toJson: NonNullTimestampConverter.dateTimeToTimestamp) final DateTime createdDate; @override @@ -1900,26 +1593,20 @@ class _$TakenPillEditedValueImpl extends _TakenPillEditedValue { return identical(this, other) || (other.runtimeType == runtimeType && other is _$TakenPillEditedValueImpl && - (identical(other.actualTakenDate, actualTakenDate) || - other.actualTakenDate == actualTakenDate) && - (identical(other.historyRecordedDate, historyRecordedDate) || - other.historyRecordedDate == historyRecordedDate) && - (identical(other.createdDate, createdDate) || - other.createdDate == createdDate)); + (identical(other.actualTakenDate, actualTakenDate) || other.actualTakenDate == actualTakenDate) && + (identical(other.historyRecordedDate, historyRecordedDate) || other.historyRecordedDate == historyRecordedDate) && + (identical(other.createdDate, createdDate) || other.createdDate == createdDate)); } @JsonKey(ignore: true) @override - int get hashCode => Object.hash( - runtimeType, actualTakenDate, historyRecordedDate, createdDate); + int get hashCode => Object.hash(runtimeType, actualTakenDate, historyRecordedDate, createdDate); @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$TakenPillEditedValueImplCopyWith<_$TakenPillEditedValueImpl> - get copyWith => - __$$TakenPillEditedValueImplCopyWithImpl<_$TakenPillEditedValueImpl>( - this, _$identity); + _$$TakenPillEditedValueImplCopyWith<_$TakenPillEditedValueImpl> get copyWith => + __$$TakenPillEditedValueImplCopyWithImpl<_$TakenPillEditedValueImpl>(this, _$identity); @override Map toJson() { @@ -1931,43 +1618,29 @@ class _$TakenPillEditedValueImpl extends _TakenPillEditedValue { abstract class _TakenPillEditedValue extends TakenPillEditedValue { const factory _TakenPillEditedValue( - {@JsonKey( - fromJson: NonNullTimestampConverter.timestampToDateTime, - toJson: NonNullTimestampConverter.dateTimeToTimestamp) + {@JsonKey(fromJson: NonNullTimestampConverter.timestampToDateTime, toJson: NonNullTimestampConverter.dateTimeToTimestamp) required final DateTime actualTakenDate, - @JsonKey( - fromJson: NonNullTimestampConverter.timestampToDateTime, - toJson: NonNullTimestampConverter.dateTimeToTimestamp) + @JsonKey(fromJson: NonNullTimestampConverter.timestampToDateTime, toJson: NonNullTimestampConverter.dateTimeToTimestamp) required final DateTime historyRecordedDate, - @JsonKey( - fromJson: NonNullTimestampConverter.timestampToDateTime, - toJson: NonNullTimestampConverter.dateTimeToTimestamp) + @JsonKey(fromJson: NonNullTimestampConverter.timestampToDateTime, toJson: NonNullTimestampConverter.dateTimeToTimestamp) required final DateTime createdDate}) = _$TakenPillEditedValueImpl; const _TakenPillEditedValue._() : super._(); - factory _TakenPillEditedValue.fromJson(Map json) = - _$TakenPillEditedValueImpl.fromJson; + factory _TakenPillEditedValue.fromJson(Map json) = _$TakenPillEditedValueImpl.fromJson; @override // ============ BEGIN: Added since v1 ============ // 実際の服用時刻。ユーザーが編集した後の服用時刻 - @JsonKey( - fromJson: NonNullTimestampConverter.timestampToDateTime, - toJson: NonNullTimestampConverter.dateTimeToTimestamp) + @JsonKey(fromJson: NonNullTimestampConverter.timestampToDateTime, toJson: NonNullTimestampConverter.dateTimeToTimestamp) DateTime get actualTakenDate; @override // 元々の履歴がDBに書き込まれた時刻。通常はユーザーが編集する前の服用時刻 - @JsonKey( - fromJson: NonNullTimestampConverter.timestampToDateTime, - toJson: NonNullTimestampConverter.dateTimeToTimestamp) + @JsonKey(fromJson: NonNullTimestampConverter.timestampToDateTime, toJson: NonNullTimestampConverter.dateTimeToTimestamp) DateTime get historyRecordedDate; @override - @JsonKey( - fromJson: NonNullTimestampConverter.timestampToDateTime, - toJson: NonNullTimestampConverter.dateTimeToTimestamp) + @JsonKey(fromJson: NonNullTimestampConverter.timestampToDateTime, toJson: NonNullTimestampConverter.dateTimeToTimestamp) DateTime get createdDate; @override @JsonKey(ignore: true) - _$$TakenPillEditedValueImplCopyWith<_$TakenPillEditedValueImpl> - get copyWith => throw _privateConstructorUsedError; + _$$TakenPillEditedValueImplCopyWith<_$TakenPillEditedValueImpl> get copyWith => throw _privateConstructorUsedError; } RevertTakenPillValue _$RevertTakenPillValueFromJson(Map json) { @@ -1978,46 +1651,33 @@ RevertTakenPillValue _$RevertTakenPillValueFromJson(Map json) { mixin _$RevertTakenPillValue { // The below properties are deprecated and added since v1. // This is deprecated property. TODO: [PillSheetModifiedHistory-V2] delete after 2024-05-01 - @JsonKey( - fromJson: TimestampConverter.timestampToDateTime, - toJson: TimestampConverter.dateTimeToTimestamp) + @JsonKey(fromJson: TimestampConverter.timestampToDateTime, toJson: TimestampConverter.dateTimeToTimestamp) DateTime? get beforeLastTakenDate => throw _privateConstructorUsedError; - @JsonKey( - fromJson: NonNullTimestampConverter.timestampToDateTime, - toJson: NonNullTimestampConverter.dateTimeToTimestamp) + @JsonKey(fromJson: NonNullTimestampConverter.timestampToDateTime, toJson: NonNullTimestampConverter.dateTimeToTimestamp) DateTime get afterLastTakenDate => throw _privateConstructorUsedError; int get beforeLastTakenPillNumber => throw _privateConstructorUsedError; int get afterLastTakenPillNumber => throw _privateConstructorUsedError; Map toJson() => throw _privateConstructorUsedError; @JsonKey(ignore: true) - $RevertTakenPillValueCopyWith get copyWith => - throw _privateConstructorUsedError; + $RevertTakenPillValueCopyWith get copyWith => throw _privateConstructorUsedError; } /// @nodoc abstract class $RevertTakenPillValueCopyWith<$Res> { - factory $RevertTakenPillValueCopyWith(RevertTakenPillValue value, - $Res Function(RevertTakenPillValue) then) = + factory $RevertTakenPillValueCopyWith(RevertTakenPillValue value, $Res Function(RevertTakenPillValue) then) = _$RevertTakenPillValueCopyWithImpl<$Res, RevertTakenPillValue>; @useResult $Res call( - {@JsonKey( - fromJson: TimestampConverter.timestampToDateTime, - toJson: TimestampConverter.dateTimeToTimestamp) - DateTime? beforeLastTakenDate, - @JsonKey( - fromJson: NonNullTimestampConverter.timestampToDateTime, - toJson: NonNullTimestampConverter.dateTimeToTimestamp) + {@JsonKey(fromJson: TimestampConverter.timestampToDateTime, toJson: TimestampConverter.dateTimeToTimestamp) DateTime? beforeLastTakenDate, + @JsonKey(fromJson: NonNullTimestampConverter.timestampToDateTime, toJson: NonNullTimestampConverter.dateTimeToTimestamp) DateTime afterLastTakenDate, int beforeLastTakenPillNumber, int afterLastTakenPillNumber}); } /// @nodoc -class _$RevertTakenPillValueCopyWithImpl<$Res, - $Val extends RevertTakenPillValue> - implements $RevertTakenPillValueCopyWith<$Res> { +class _$RevertTakenPillValueCopyWithImpl<$Res, $Val extends RevertTakenPillValue> implements $RevertTakenPillValueCopyWith<$Res> { _$RevertTakenPillValueCopyWithImpl(this._value, this._then); // ignore: unused_field @@ -2055,33 +1715,23 @@ class _$RevertTakenPillValueCopyWithImpl<$Res, } /// @nodoc -abstract class _$$RevertTakenPillValueImplCopyWith<$Res> - implements $RevertTakenPillValueCopyWith<$Res> { - factory _$$RevertTakenPillValueImplCopyWith(_$RevertTakenPillValueImpl value, - $Res Function(_$RevertTakenPillValueImpl) then) = +abstract class _$$RevertTakenPillValueImplCopyWith<$Res> implements $RevertTakenPillValueCopyWith<$Res> { + factory _$$RevertTakenPillValueImplCopyWith(_$RevertTakenPillValueImpl value, $Res Function(_$RevertTakenPillValueImpl) then) = __$$RevertTakenPillValueImplCopyWithImpl<$Res>; @override @useResult $Res call( - {@JsonKey( - fromJson: TimestampConverter.timestampToDateTime, - toJson: TimestampConverter.dateTimeToTimestamp) - DateTime? beforeLastTakenDate, - @JsonKey( - fromJson: NonNullTimestampConverter.timestampToDateTime, - toJson: NonNullTimestampConverter.dateTimeToTimestamp) + {@JsonKey(fromJson: TimestampConverter.timestampToDateTime, toJson: TimestampConverter.dateTimeToTimestamp) DateTime? beforeLastTakenDate, + @JsonKey(fromJson: NonNullTimestampConverter.timestampToDateTime, toJson: NonNullTimestampConverter.dateTimeToTimestamp) DateTime afterLastTakenDate, int beforeLastTakenPillNumber, int afterLastTakenPillNumber}); } /// @nodoc -class __$$RevertTakenPillValueImplCopyWithImpl<$Res> - extends _$RevertTakenPillValueCopyWithImpl<$Res, _$RevertTakenPillValueImpl> +class __$$RevertTakenPillValueImplCopyWithImpl<$Res> extends _$RevertTakenPillValueCopyWithImpl<$Res, _$RevertTakenPillValueImpl> implements _$$RevertTakenPillValueImplCopyWith<$Res> { - __$$RevertTakenPillValueImplCopyWithImpl(_$RevertTakenPillValueImpl _value, - $Res Function(_$RevertTakenPillValueImpl) _then) - : super(_value, _then); + __$$RevertTakenPillValueImplCopyWithImpl(_$RevertTakenPillValueImpl _value, $Res Function(_$RevertTakenPillValueImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @override @@ -2117,32 +1767,22 @@ class __$$RevertTakenPillValueImplCopyWithImpl<$Res> @JsonSerializable(explicitToJson: true) class _$RevertTakenPillValueImpl extends _RevertTakenPillValue { const _$RevertTakenPillValueImpl( - {@JsonKey( - fromJson: TimestampConverter.timestampToDateTime, - toJson: TimestampConverter.dateTimeToTimestamp) - this.beforeLastTakenDate, - @JsonKey( - fromJson: NonNullTimestampConverter.timestampToDateTime, - toJson: NonNullTimestampConverter.dateTimeToTimestamp) + {@JsonKey(fromJson: TimestampConverter.timestampToDateTime, toJson: TimestampConverter.dateTimeToTimestamp) this.beforeLastTakenDate, + @JsonKey(fromJson: NonNullTimestampConverter.timestampToDateTime, toJson: NonNullTimestampConverter.dateTimeToTimestamp) required this.afterLastTakenDate, required this.beforeLastTakenPillNumber, required this.afterLastTakenPillNumber}) : super._(); - factory _$RevertTakenPillValueImpl.fromJson(Map json) => - _$$RevertTakenPillValueImplFromJson(json); + factory _$RevertTakenPillValueImpl.fromJson(Map json) => _$$RevertTakenPillValueImplFromJson(json); // The below properties are deprecated and added since v1. // This is deprecated property. TODO: [PillSheetModifiedHistory-V2] delete after 2024-05-01 @override - @JsonKey( - fromJson: TimestampConverter.timestampToDateTime, - toJson: TimestampConverter.dateTimeToTimestamp) + @JsonKey(fromJson: TimestampConverter.timestampToDateTime, toJson: TimestampConverter.dateTimeToTimestamp) final DateTime? beforeLastTakenDate; @override - @JsonKey( - fromJson: NonNullTimestampConverter.timestampToDateTime, - toJson: NonNullTimestampConverter.dateTimeToTimestamp) + @JsonKey(fromJson: NonNullTimestampConverter.timestampToDateTime, toJson: NonNullTimestampConverter.dateTimeToTimestamp) final DateTime afterLastTakenDate; @override final int beforeLastTakenPillNumber; @@ -2159,30 +1799,21 @@ class _$RevertTakenPillValueImpl extends _RevertTakenPillValue { return identical(this, other) || (other.runtimeType == runtimeType && other is _$RevertTakenPillValueImpl && - (identical(other.beforeLastTakenDate, beforeLastTakenDate) || - other.beforeLastTakenDate == beforeLastTakenDate) && - (identical(other.afterLastTakenDate, afterLastTakenDate) || - other.afterLastTakenDate == afterLastTakenDate) && - (identical(other.beforeLastTakenPillNumber, - beforeLastTakenPillNumber) || - other.beforeLastTakenPillNumber == beforeLastTakenPillNumber) && - (identical( - other.afterLastTakenPillNumber, afterLastTakenPillNumber) || - other.afterLastTakenPillNumber == afterLastTakenPillNumber)); + (identical(other.beforeLastTakenDate, beforeLastTakenDate) || other.beforeLastTakenDate == beforeLastTakenDate) && + (identical(other.afterLastTakenDate, afterLastTakenDate) || other.afterLastTakenDate == afterLastTakenDate) && + (identical(other.beforeLastTakenPillNumber, beforeLastTakenPillNumber) || other.beforeLastTakenPillNumber == beforeLastTakenPillNumber) && + (identical(other.afterLastTakenPillNumber, afterLastTakenPillNumber) || other.afterLastTakenPillNumber == afterLastTakenPillNumber)); } @JsonKey(ignore: true) @override - int get hashCode => Object.hash(runtimeType, beforeLastTakenDate, - afterLastTakenDate, beforeLastTakenPillNumber, afterLastTakenPillNumber); + int get hashCode => Object.hash(runtimeType, beforeLastTakenDate, afterLastTakenDate, beforeLastTakenPillNumber, afterLastTakenPillNumber); @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$RevertTakenPillValueImplCopyWith<_$RevertTakenPillValueImpl> - get copyWith => - __$$RevertTakenPillValueImplCopyWithImpl<_$RevertTakenPillValueImpl>( - this, _$identity); + _$$RevertTakenPillValueImplCopyWith<_$RevertTakenPillValueImpl> get copyWith => + __$$RevertTakenPillValueImplCopyWithImpl<_$RevertTakenPillValueImpl>(this, _$identity); @override Map toJson() { @@ -2194,32 +1825,21 @@ class _$RevertTakenPillValueImpl extends _RevertTakenPillValue { abstract class _RevertTakenPillValue extends RevertTakenPillValue { const factory _RevertTakenPillValue( - {@JsonKey( - fromJson: TimestampConverter.timestampToDateTime, - toJson: TimestampConverter.dateTimeToTimestamp) - final DateTime? beforeLastTakenDate, - @JsonKey( - fromJson: NonNullTimestampConverter.timestampToDateTime, - toJson: NonNullTimestampConverter.dateTimeToTimestamp) - required final DateTime afterLastTakenDate, - required final int beforeLastTakenPillNumber, - required final int afterLastTakenPillNumber}) = - _$RevertTakenPillValueImpl; + {@JsonKey(fromJson: TimestampConverter.timestampToDateTime, toJson: TimestampConverter.dateTimeToTimestamp) final DateTime? beforeLastTakenDate, + @JsonKey(fromJson: NonNullTimestampConverter.timestampToDateTime, toJson: NonNullTimestampConverter.dateTimeToTimestamp) + required final DateTime afterLastTakenDate, + required final int beforeLastTakenPillNumber, + required final int afterLastTakenPillNumber}) = _$RevertTakenPillValueImpl; const _RevertTakenPillValue._() : super._(); - factory _RevertTakenPillValue.fromJson(Map json) = - _$RevertTakenPillValueImpl.fromJson; + factory _RevertTakenPillValue.fromJson(Map json) = _$RevertTakenPillValueImpl.fromJson; @override // The below properties are deprecated and added since v1. // This is deprecated property. TODO: [PillSheetModifiedHistory-V2] delete after 2024-05-01 - @JsonKey( - fromJson: TimestampConverter.timestampToDateTime, - toJson: TimestampConverter.dateTimeToTimestamp) + @JsonKey(fromJson: TimestampConverter.timestampToDateTime, toJson: TimestampConverter.dateTimeToTimestamp) DateTime? get beforeLastTakenDate; @override - @JsonKey( - fromJson: NonNullTimestampConverter.timestampToDateTime, - toJson: NonNullTimestampConverter.dateTimeToTimestamp) + @JsonKey(fromJson: NonNullTimestampConverter.timestampToDateTime, toJson: NonNullTimestampConverter.dateTimeToTimestamp) DateTime get afterLastTakenDate; @override int get beforeLastTakenPillNumber; @@ -2227,12 +1847,10 @@ abstract class _RevertTakenPillValue extends RevertTakenPillValue { int get afterLastTakenPillNumber; @override @JsonKey(ignore: true) - _$$RevertTakenPillValueImplCopyWith<_$RevertTakenPillValueImpl> - get copyWith => throw _privateConstructorUsedError; + _$$RevertTakenPillValueImplCopyWith<_$RevertTakenPillValueImpl> get copyWith => throw _privateConstructorUsedError; } -ChangedPillNumberValue _$ChangedPillNumberValueFromJson( - Map json) { +ChangedPillNumberValue _$ChangedPillNumberValueFromJson(Map json) { return _ChangedPillNumberValue.fromJson(json); } @@ -2240,13 +1858,9 @@ ChangedPillNumberValue _$ChangedPillNumberValueFromJson( mixin _$ChangedPillNumberValue { // The below properties are deprecated and added since v1. // This is deprecated property. TODO: [PillSheetModifiedHistory-V2] delete after 2024-05-01 - @JsonKey( - fromJson: NonNullTimestampConverter.timestampToDateTime, - toJson: NonNullTimestampConverter.dateTimeToTimestamp) + @JsonKey(fromJson: NonNullTimestampConverter.timestampToDateTime, toJson: NonNullTimestampConverter.dateTimeToTimestamp) DateTime get beforeBeginingDate => throw _privateConstructorUsedError; - @JsonKey( - fromJson: NonNullTimestampConverter.timestampToDateTime, - toJson: NonNullTimestampConverter.dateTimeToTimestamp) + @JsonKey(fromJson: NonNullTimestampConverter.timestampToDateTime, toJson: NonNullTimestampConverter.dateTimeToTimestamp) DateTime get afterBeginingDate => throw _privateConstructorUsedError; int get beforeTodayPillNumber => throw _privateConstructorUsedError; int get afterTodayPillNumber => throw _privateConstructorUsedError; @@ -2255,24 +1869,18 @@ mixin _$ChangedPillNumberValue { Map toJson() => throw _privateConstructorUsedError; @JsonKey(ignore: true) - $ChangedPillNumberValueCopyWith get copyWith => - throw _privateConstructorUsedError; + $ChangedPillNumberValueCopyWith get copyWith => throw _privateConstructorUsedError; } /// @nodoc abstract class $ChangedPillNumberValueCopyWith<$Res> { - factory $ChangedPillNumberValueCopyWith(ChangedPillNumberValue value, - $Res Function(ChangedPillNumberValue) then) = + factory $ChangedPillNumberValueCopyWith(ChangedPillNumberValue value, $Res Function(ChangedPillNumberValue) then) = _$ChangedPillNumberValueCopyWithImpl<$Res, ChangedPillNumberValue>; @useResult $Res call( - {@JsonKey( - fromJson: NonNullTimestampConverter.timestampToDateTime, - toJson: NonNullTimestampConverter.dateTimeToTimestamp) + {@JsonKey(fromJson: NonNullTimestampConverter.timestampToDateTime, toJson: NonNullTimestampConverter.dateTimeToTimestamp) DateTime beforeBeginingDate, - @JsonKey( - fromJson: NonNullTimestampConverter.timestampToDateTime, - toJson: NonNullTimestampConverter.dateTimeToTimestamp) + @JsonKey(fromJson: NonNullTimestampConverter.timestampToDateTime, toJson: NonNullTimestampConverter.dateTimeToTimestamp) DateTime afterBeginingDate, int beforeTodayPillNumber, int afterTodayPillNumber, @@ -2281,9 +1889,7 @@ abstract class $ChangedPillNumberValueCopyWith<$Res> { } /// @nodoc -class _$ChangedPillNumberValueCopyWithImpl<$Res, - $Val extends ChangedPillNumberValue> - implements $ChangedPillNumberValueCopyWith<$Res> { +class _$ChangedPillNumberValueCopyWithImpl<$Res, $Val extends ChangedPillNumberValue> implements $ChangedPillNumberValueCopyWith<$Res> { _$ChangedPillNumberValueCopyWithImpl(this._value, this._then); // ignore: unused_field @@ -2331,22 +1937,15 @@ class _$ChangedPillNumberValueCopyWithImpl<$Res, } /// @nodoc -abstract class _$$ChangedPillNumberValueImplCopyWith<$Res> - implements $ChangedPillNumberValueCopyWith<$Res> { - factory _$$ChangedPillNumberValueImplCopyWith( - _$ChangedPillNumberValueImpl value, - $Res Function(_$ChangedPillNumberValueImpl) then) = +abstract class _$$ChangedPillNumberValueImplCopyWith<$Res> implements $ChangedPillNumberValueCopyWith<$Res> { + factory _$$ChangedPillNumberValueImplCopyWith(_$ChangedPillNumberValueImpl value, $Res Function(_$ChangedPillNumberValueImpl) then) = __$$ChangedPillNumberValueImplCopyWithImpl<$Res>; @override @useResult $Res call( - {@JsonKey( - fromJson: NonNullTimestampConverter.timestampToDateTime, - toJson: NonNullTimestampConverter.dateTimeToTimestamp) + {@JsonKey(fromJson: NonNullTimestampConverter.timestampToDateTime, toJson: NonNullTimestampConverter.dateTimeToTimestamp) DateTime beforeBeginingDate, - @JsonKey( - fromJson: NonNullTimestampConverter.timestampToDateTime, - toJson: NonNullTimestampConverter.dateTimeToTimestamp) + @JsonKey(fromJson: NonNullTimestampConverter.timestampToDateTime, toJson: NonNullTimestampConverter.dateTimeToTimestamp) DateTime afterBeginingDate, int beforeTodayPillNumber, int afterTodayPillNumber, @@ -2355,13 +1954,9 @@ abstract class _$$ChangedPillNumberValueImplCopyWith<$Res> } /// @nodoc -class __$$ChangedPillNumberValueImplCopyWithImpl<$Res> - extends _$ChangedPillNumberValueCopyWithImpl<$Res, - _$ChangedPillNumberValueImpl> +class __$$ChangedPillNumberValueImplCopyWithImpl<$Res> extends _$ChangedPillNumberValueCopyWithImpl<$Res, _$ChangedPillNumberValueImpl> implements _$$ChangedPillNumberValueImplCopyWith<$Res> { - __$$ChangedPillNumberValueImplCopyWithImpl( - _$ChangedPillNumberValueImpl _value, - $Res Function(_$ChangedPillNumberValueImpl) _then) + __$$ChangedPillNumberValueImplCopyWithImpl(_$ChangedPillNumberValueImpl _value, $Res Function(_$ChangedPillNumberValueImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -2408,13 +2003,9 @@ class __$$ChangedPillNumberValueImplCopyWithImpl<$Res> @JsonSerializable(explicitToJson: true) class _$ChangedPillNumberValueImpl extends _ChangedPillNumberValue { const _$ChangedPillNumberValueImpl( - {@JsonKey( - fromJson: NonNullTimestampConverter.timestampToDateTime, - toJson: NonNullTimestampConverter.dateTimeToTimestamp) + {@JsonKey(fromJson: NonNullTimestampConverter.timestampToDateTime, toJson: NonNullTimestampConverter.dateTimeToTimestamp) required this.beforeBeginingDate, - @JsonKey( - fromJson: NonNullTimestampConverter.timestampToDateTime, - toJson: NonNullTimestampConverter.dateTimeToTimestamp) + @JsonKey(fromJson: NonNullTimestampConverter.timestampToDateTime, toJson: NonNullTimestampConverter.dateTimeToTimestamp) required this.afterBeginingDate, required this.beforeTodayPillNumber, required this.afterTodayPillNumber, @@ -2422,20 +2013,15 @@ class _$ChangedPillNumberValueImpl extends _ChangedPillNumberValue { this.afterGroupIndex = 1}) : super._(); - factory _$ChangedPillNumberValueImpl.fromJson(Map json) => - _$$ChangedPillNumberValueImplFromJson(json); + factory _$ChangedPillNumberValueImpl.fromJson(Map json) => _$$ChangedPillNumberValueImplFromJson(json); // The below properties are deprecated and added since v1. // This is deprecated property. TODO: [PillSheetModifiedHistory-V2] delete after 2024-05-01 @override - @JsonKey( - fromJson: NonNullTimestampConverter.timestampToDateTime, - toJson: NonNullTimestampConverter.dateTimeToTimestamp) + @JsonKey(fromJson: NonNullTimestampConverter.timestampToDateTime, toJson: NonNullTimestampConverter.dateTimeToTimestamp) final DateTime beforeBeginingDate; @override - @JsonKey( - fromJson: NonNullTimestampConverter.timestampToDateTime, - toJson: NonNullTimestampConverter.dateTimeToTimestamp) + @JsonKey(fromJson: NonNullTimestampConverter.timestampToDateTime, toJson: NonNullTimestampConverter.dateTimeToTimestamp) final DateTime afterBeginingDate; @override final int beforeTodayPillNumber; @@ -2458,37 +2044,24 @@ class _$ChangedPillNumberValueImpl extends _ChangedPillNumberValue { return identical(this, other) || (other.runtimeType == runtimeType && other is _$ChangedPillNumberValueImpl && - (identical(other.beforeBeginingDate, beforeBeginingDate) || - other.beforeBeginingDate == beforeBeginingDate) && - (identical(other.afterBeginingDate, afterBeginingDate) || - other.afterBeginingDate == afterBeginingDate) && - (identical(other.beforeTodayPillNumber, beforeTodayPillNumber) || - other.beforeTodayPillNumber == beforeTodayPillNumber) && - (identical(other.afterTodayPillNumber, afterTodayPillNumber) || - other.afterTodayPillNumber == afterTodayPillNumber) && - (identical(other.beforeGroupIndex, beforeGroupIndex) || - other.beforeGroupIndex == beforeGroupIndex) && - (identical(other.afterGroupIndex, afterGroupIndex) || - other.afterGroupIndex == afterGroupIndex)); + (identical(other.beforeBeginingDate, beforeBeginingDate) || other.beforeBeginingDate == beforeBeginingDate) && + (identical(other.afterBeginingDate, afterBeginingDate) || other.afterBeginingDate == afterBeginingDate) && + (identical(other.beforeTodayPillNumber, beforeTodayPillNumber) || other.beforeTodayPillNumber == beforeTodayPillNumber) && + (identical(other.afterTodayPillNumber, afterTodayPillNumber) || other.afterTodayPillNumber == afterTodayPillNumber) && + (identical(other.beforeGroupIndex, beforeGroupIndex) || other.beforeGroupIndex == beforeGroupIndex) && + (identical(other.afterGroupIndex, afterGroupIndex) || other.afterGroupIndex == afterGroupIndex)); } @JsonKey(ignore: true) @override - int get hashCode => Object.hash( - runtimeType, - beforeBeginingDate, - afterBeginingDate, - beforeTodayPillNumber, - afterTodayPillNumber, - beforeGroupIndex, - afterGroupIndex); + int get hashCode => + Object.hash(runtimeType, beforeBeginingDate, afterBeginingDate, beforeTodayPillNumber, afterTodayPillNumber, beforeGroupIndex, afterGroupIndex); @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$ChangedPillNumberValueImplCopyWith<_$ChangedPillNumberValueImpl> - get copyWith => __$$ChangedPillNumberValueImplCopyWithImpl< - _$ChangedPillNumberValueImpl>(this, _$identity); + _$$ChangedPillNumberValueImplCopyWith<_$ChangedPillNumberValueImpl> get copyWith => + __$$ChangedPillNumberValueImplCopyWithImpl<_$ChangedPillNumberValueImpl>(this, _$identity); @override Map toJson() { @@ -2500,13 +2073,9 @@ class _$ChangedPillNumberValueImpl extends _ChangedPillNumberValue { abstract class _ChangedPillNumberValue extends ChangedPillNumberValue { const factory _ChangedPillNumberValue( - {@JsonKey( - fromJson: NonNullTimestampConverter.timestampToDateTime, - toJson: NonNullTimestampConverter.dateTimeToTimestamp) + {@JsonKey(fromJson: NonNullTimestampConverter.timestampToDateTime, toJson: NonNullTimestampConverter.dateTimeToTimestamp) required final DateTime beforeBeginingDate, - @JsonKey( - fromJson: NonNullTimestampConverter.timestampToDateTime, - toJson: NonNullTimestampConverter.dateTimeToTimestamp) + @JsonKey(fromJson: NonNullTimestampConverter.timestampToDateTime, toJson: NonNullTimestampConverter.dateTimeToTimestamp) required final DateTime afterBeginingDate, required final int beforeTodayPillNumber, required final int afterTodayPillNumber, @@ -2514,19 +2083,14 @@ abstract class _ChangedPillNumberValue extends ChangedPillNumberValue { final int afterGroupIndex}) = _$ChangedPillNumberValueImpl; const _ChangedPillNumberValue._() : super._(); - factory _ChangedPillNumberValue.fromJson(Map json) = - _$ChangedPillNumberValueImpl.fromJson; + factory _ChangedPillNumberValue.fromJson(Map json) = _$ChangedPillNumberValueImpl.fromJson; @override // The below properties are deprecated and added since v1. // This is deprecated property. TODO: [PillSheetModifiedHistory-V2] delete after 2024-05-01 - @JsonKey( - fromJson: NonNullTimestampConverter.timestampToDateTime, - toJson: NonNullTimestampConverter.dateTimeToTimestamp) + @JsonKey(fromJson: NonNullTimestampConverter.timestampToDateTime, toJson: NonNullTimestampConverter.dateTimeToTimestamp) DateTime get beforeBeginingDate; @override - @JsonKey( - fromJson: NonNullTimestampConverter.timestampToDateTime, - toJson: NonNullTimestampConverter.dateTimeToTimestamp) + @JsonKey(fromJson: NonNullTimestampConverter.timestampToDateTime, toJson: NonNullTimestampConverter.dateTimeToTimestamp) DateTime get afterBeginingDate; @override int get beforeTodayPillNumber; @@ -2538,8 +2102,7 @@ abstract class _ChangedPillNumberValue extends ChangedPillNumberValue { int get afterGroupIndex; @override @JsonKey(ignore: true) - _$$ChangedPillNumberValueImplCopyWith<_$ChangedPillNumberValueImpl> - get copyWith => throw _privateConstructorUsedError; + _$$ChangedPillNumberValueImplCopyWith<_$ChangedPillNumberValueImpl> get copyWith => throw _privateConstructorUsedError; } EndedPillSheetValue _$EndedPillSheetValueFromJson(Map json) { @@ -2549,42 +2112,30 @@ EndedPillSheetValue _$EndedPillSheetValueFromJson(Map json) { /// @nodoc mixin _$EndedPillSheetValue { // 終了した日付。サーバーで書き込まれる - @JsonKey( - fromJson: NonNullTimestampConverter.timestampToDateTime, - toJson: NonNullTimestampConverter.dateTimeToTimestamp) - DateTime get endRecordDate => - throw _privateConstructorUsedError; // 終了した時点での最終服用日 - @JsonKey( - fromJson: NonNullTimestampConverter.timestampToDateTime, - toJson: NonNullTimestampConverter.dateTimeToTimestamp) + @JsonKey(fromJson: NonNullTimestampConverter.timestampToDateTime, toJson: NonNullTimestampConverter.dateTimeToTimestamp) + DateTime get endRecordDate => throw _privateConstructorUsedError; // 終了した時点での最終服用日 + @JsonKey(fromJson: NonNullTimestampConverter.timestampToDateTime, toJson: NonNullTimestampConverter.dateTimeToTimestamp) DateTime get lastTakenDate => throw _privateConstructorUsedError; Map toJson() => throw _privateConstructorUsedError; @JsonKey(ignore: true) - $EndedPillSheetValueCopyWith get copyWith => - throw _privateConstructorUsedError; + $EndedPillSheetValueCopyWith get copyWith => throw _privateConstructorUsedError; } /// @nodoc abstract class $EndedPillSheetValueCopyWith<$Res> { - factory $EndedPillSheetValueCopyWith( - EndedPillSheetValue value, $Res Function(EndedPillSheetValue) then) = + factory $EndedPillSheetValueCopyWith(EndedPillSheetValue value, $Res Function(EndedPillSheetValue) then) = _$EndedPillSheetValueCopyWithImpl<$Res, EndedPillSheetValue>; @useResult $Res call( - {@JsonKey( - fromJson: NonNullTimestampConverter.timestampToDateTime, - toJson: NonNullTimestampConverter.dateTimeToTimestamp) + {@JsonKey(fromJson: NonNullTimestampConverter.timestampToDateTime, toJson: NonNullTimestampConverter.dateTimeToTimestamp) DateTime endRecordDate, - @JsonKey( - fromJson: NonNullTimestampConverter.timestampToDateTime, - toJson: NonNullTimestampConverter.dateTimeToTimestamp) + @JsonKey(fromJson: NonNullTimestampConverter.timestampToDateTime, toJson: NonNullTimestampConverter.dateTimeToTimestamp) DateTime lastTakenDate}); } /// @nodoc -class _$EndedPillSheetValueCopyWithImpl<$Res, $Val extends EndedPillSheetValue> - implements $EndedPillSheetValueCopyWith<$Res> { +class _$EndedPillSheetValueCopyWithImpl<$Res, $Val extends EndedPillSheetValue> implements $EndedPillSheetValueCopyWith<$Res> { _$EndedPillSheetValueCopyWithImpl(this._value, this._then); // ignore: unused_field @@ -2612,31 +2163,22 @@ class _$EndedPillSheetValueCopyWithImpl<$Res, $Val extends EndedPillSheetValue> } /// @nodoc -abstract class _$$EndedPillSheetValueImplCopyWith<$Res> - implements $EndedPillSheetValueCopyWith<$Res> { - factory _$$EndedPillSheetValueImplCopyWith(_$EndedPillSheetValueImpl value, - $Res Function(_$EndedPillSheetValueImpl) then) = +abstract class _$$EndedPillSheetValueImplCopyWith<$Res> implements $EndedPillSheetValueCopyWith<$Res> { + factory _$$EndedPillSheetValueImplCopyWith(_$EndedPillSheetValueImpl value, $Res Function(_$EndedPillSheetValueImpl) then) = __$$EndedPillSheetValueImplCopyWithImpl<$Res>; @override @useResult $Res call( - {@JsonKey( - fromJson: NonNullTimestampConverter.timestampToDateTime, - toJson: NonNullTimestampConverter.dateTimeToTimestamp) + {@JsonKey(fromJson: NonNullTimestampConverter.timestampToDateTime, toJson: NonNullTimestampConverter.dateTimeToTimestamp) DateTime endRecordDate, - @JsonKey( - fromJson: NonNullTimestampConverter.timestampToDateTime, - toJson: NonNullTimestampConverter.dateTimeToTimestamp) + @JsonKey(fromJson: NonNullTimestampConverter.timestampToDateTime, toJson: NonNullTimestampConverter.dateTimeToTimestamp) DateTime lastTakenDate}); } /// @nodoc -class __$$EndedPillSheetValueImplCopyWithImpl<$Res> - extends _$EndedPillSheetValueCopyWithImpl<$Res, _$EndedPillSheetValueImpl> +class __$$EndedPillSheetValueImplCopyWithImpl<$Res> extends _$EndedPillSheetValueCopyWithImpl<$Res, _$EndedPillSheetValueImpl> implements _$$EndedPillSheetValueImplCopyWith<$Res> { - __$$EndedPillSheetValueImplCopyWithImpl(_$EndedPillSheetValueImpl _value, - $Res Function(_$EndedPillSheetValueImpl) _then) - : super(_value, _then); + __$$EndedPillSheetValueImplCopyWithImpl(_$EndedPillSheetValueImpl _value, $Res Function(_$EndedPillSheetValueImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @override @@ -2662,30 +2204,21 @@ class __$$EndedPillSheetValueImplCopyWithImpl<$Res> @JsonSerializable(explicitToJson: true) class _$EndedPillSheetValueImpl extends _EndedPillSheetValue { const _$EndedPillSheetValueImpl( - {@JsonKey( - fromJson: NonNullTimestampConverter.timestampToDateTime, - toJson: NonNullTimestampConverter.dateTimeToTimestamp) + {@JsonKey(fromJson: NonNullTimestampConverter.timestampToDateTime, toJson: NonNullTimestampConverter.dateTimeToTimestamp) required this.endRecordDate, - @JsonKey( - fromJson: NonNullTimestampConverter.timestampToDateTime, - toJson: NonNullTimestampConverter.dateTimeToTimestamp) + @JsonKey(fromJson: NonNullTimestampConverter.timestampToDateTime, toJson: NonNullTimestampConverter.dateTimeToTimestamp) required this.lastTakenDate}) : super._(); - factory _$EndedPillSheetValueImpl.fromJson(Map json) => - _$$EndedPillSheetValueImplFromJson(json); + factory _$EndedPillSheetValueImpl.fromJson(Map json) => _$$EndedPillSheetValueImplFromJson(json); // 終了した日付。サーバーで書き込まれる @override - @JsonKey( - fromJson: NonNullTimestampConverter.timestampToDateTime, - toJson: NonNullTimestampConverter.dateTimeToTimestamp) + @JsonKey(fromJson: NonNullTimestampConverter.timestampToDateTime, toJson: NonNullTimestampConverter.dateTimeToTimestamp) final DateTime endRecordDate; // 終了した時点での最終服用日 @override - @JsonKey( - fromJson: NonNullTimestampConverter.timestampToDateTime, - toJson: NonNullTimestampConverter.dateTimeToTimestamp) + @JsonKey(fromJson: NonNullTimestampConverter.timestampToDateTime, toJson: NonNullTimestampConverter.dateTimeToTimestamp) final DateTime lastTakenDate; @override @@ -2698,10 +2231,8 @@ class _$EndedPillSheetValueImpl extends _EndedPillSheetValue { return identical(this, other) || (other.runtimeType == runtimeType && other is _$EndedPillSheetValueImpl && - (identical(other.endRecordDate, endRecordDate) || - other.endRecordDate == endRecordDate) && - (identical(other.lastTakenDate, lastTakenDate) || - other.lastTakenDate == lastTakenDate)); + (identical(other.endRecordDate, endRecordDate) || other.endRecordDate == endRecordDate) && + (identical(other.lastTakenDate, lastTakenDate) || other.lastTakenDate == lastTakenDate)); } @JsonKey(ignore: true) @@ -2712,8 +2243,7 @@ class _$EndedPillSheetValueImpl extends _EndedPillSheetValue { @override @pragma('vm:prefer-inline') _$$EndedPillSheetValueImplCopyWith<_$EndedPillSheetValueImpl> get copyWith => - __$$EndedPillSheetValueImplCopyWithImpl<_$EndedPillSheetValueImpl>( - this, _$identity); + __$$EndedPillSheetValueImplCopyWithImpl<_$EndedPillSheetValueImpl>(this, _$identity); @override Map toJson() { @@ -2725,37 +2255,26 @@ class _$EndedPillSheetValueImpl extends _EndedPillSheetValue { abstract class _EndedPillSheetValue extends EndedPillSheetValue { const factory _EndedPillSheetValue( - {@JsonKey( - fromJson: NonNullTimestampConverter.timestampToDateTime, - toJson: NonNullTimestampConverter.dateTimeToTimestamp) + {@JsonKey(fromJson: NonNullTimestampConverter.timestampToDateTime, toJson: NonNullTimestampConverter.dateTimeToTimestamp) required final DateTime endRecordDate, - @JsonKey( - fromJson: NonNullTimestampConverter.timestampToDateTime, - toJson: NonNullTimestampConverter.dateTimeToTimestamp) + @JsonKey(fromJson: NonNullTimestampConverter.timestampToDateTime, toJson: NonNullTimestampConverter.dateTimeToTimestamp) required final DateTime lastTakenDate}) = _$EndedPillSheetValueImpl; const _EndedPillSheetValue._() : super._(); - factory _EndedPillSheetValue.fromJson(Map json) = - _$EndedPillSheetValueImpl.fromJson; + factory _EndedPillSheetValue.fromJson(Map json) = _$EndedPillSheetValueImpl.fromJson; @override // 終了した日付。サーバーで書き込まれる - @JsonKey( - fromJson: NonNullTimestampConverter.timestampToDateTime, - toJson: NonNullTimestampConverter.dateTimeToTimestamp) + @JsonKey(fromJson: NonNullTimestampConverter.timestampToDateTime, toJson: NonNullTimestampConverter.dateTimeToTimestamp) DateTime get endRecordDate; @override // 終了した時点での最終服用日 - @JsonKey( - fromJson: NonNullTimestampConverter.timestampToDateTime, - toJson: NonNullTimestampConverter.dateTimeToTimestamp) + @JsonKey(fromJson: NonNullTimestampConverter.timestampToDateTime, toJson: NonNullTimestampConverter.dateTimeToTimestamp) DateTime get lastTakenDate; @override @JsonKey(ignore: true) - _$$EndedPillSheetValueImplCopyWith<_$EndedPillSheetValueImpl> get copyWith => - throw _privateConstructorUsedError; + _$$EndedPillSheetValueImplCopyWith<_$EndedPillSheetValueImpl> get copyWith => throw _privateConstructorUsedError; } -BeganRestDurationValue _$BeganRestDurationValueFromJson( - Map json) { +BeganRestDurationValue _$BeganRestDurationValueFromJson(Map json) { return _BeganRestDurationValue.fromJson(json); } @@ -2767,14 +2286,12 @@ mixin _$BeganRestDurationValue { Map toJson() => throw _privateConstructorUsedError; @JsonKey(ignore: true) - $BeganRestDurationValueCopyWith get copyWith => - throw _privateConstructorUsedError; + $BeganRestDurationValueCopyWith get copyWith => throw _privateConstructorUsedError; } /// @nodoc abstract class $BeganRestDurationValueCopyWith<$Res> { - factory $BeganRestDurationValueCopyWith(BeganRestDurationValue value, - $Res Function(BeganRestDurationValue) then) = + factory $BeganRestDurationValueCopyWith(BeganRestDurationValue value, $Res Function(BeganRestDurationValue) then) = _$BeganRestDurationValueCopyWithImpl<$Res, BeganRestDurationValue>; @useResult $Res call({RestDuration restDuration}); @@ -2783,9 +2300,7 @@ abstract class $BeganRestDurationValueCopyWith<$Res> { } /// @nodoc -class _$BeganRestDurationValueCopyWithImpl<$Res, - $Val extends BeganRestDurationValue> - implements $BeganRestDurationValueCopyWith<$Res> { +class _$BeganRestDurationValueCopyWithImpl<$Res, $Val extends BeganRestDurationValue> implements $BeganRestDurationValueCopyWith<$Res> { _$BeganRestDurationValueCopyWithImpl(this._value, this._then); // ignore: unused_field @@ -2816,11 +2331,8 @@ class _$BeganRestDurationValueCopyWithImpl<$Res, } /// @nodoc -abstract class _$$BeganRestDurationValueImplCopyWith<$Res> - implements $BeganRestDurationValueCopyWith<$Res> { - factory _$$BeganRestDurationValueImplCopyWith( - _$BeganRestDurationValueImpl value, - $Res Function(_$BeganRestDurationValueImpl) then) = +abstract class _$$BeganRestDurationValueImplCopyWith<$Res> implements $BeganRestDurationValueCopyWith<$Res> { + factory _$$BeganRestDurationValueImplCopyWith(_$BeganRestDurationValueImpl value, $Res Function(_$BeganRestDurationValueImpl) then) = __$$BeganRestDurationValueImplCopyWithImpl<$Res>; @override @useResult @@ -2831,13 +2343,9 @@ abstract class _$$BeganRestDurationValueImplCopyWith<$Res> } /// @nodoc -class __$$BeganRestDurationValueImplCopyWithImpl<$Res> - extends _$BeganRestDurationValueCopyWithImpl<$Res, - _$BeganRestDurationValueImpl> +class __$$BeganRestDurationValueImplCopyWithImpl<$Res> extends _$BeganRestDurationValueCopyWithImpl<$Res, _$BeganRestDurationValueImpl> implements _$$BeganRestDurationValueImplCopyWith<$Res> { - __$$BeganRestDurationValueImplCopyWithImpl( - _$BeganRestDurationValueImpl _value, - $Res Function(_$BeganRestDurationValueImpl) _then) + __$$BeganRestDurationValueImplCopyWithImpl(_$BeganRestDurationValueImpl _value, $Res Function(_$BeganRestDurationValueImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -2860,8 +2368,7 @@ class __$$BeganRestDurationValueImplCopyWithImpl<$Res> class _$BeganRestDurationValueImpl extends _BeganRestDurationValue { const _$BeganRestDurationValueImpl({required this.restDuration}) : super._(); - factory _$BeganRestDurationValueImpl.fromJson(Map json) => - _$$BeganRestDurationValueImplFromJson(json); + factory _$BeganRestDurationValueImpl.fromJson(Map json) => _$$BeganRestDurationValueImplFromJson(json); // ============ BEGIN: Added since v1 ============ // どの服用お休み期間か特定するのが大変なので記録したものを使用する @@ -2878,8 +2385,7 @@ class _$BeganRestDurationValueImpl extends _BeganRestDurationValue { return identical(this, other) || (other.runtimeType == runtimeType && other is _$BeganRestDurationValueImpl && - (identical(other.restDuration, restDuration) || - other.restDuration == restDuration)); + (identical(other.restDuration, restDuration) || other.restDuration == restDuration)); } @JsonKey(ignore: true) @@ -2889,9 +2395,8 @@ class _$BeganRestDurationValueImpl extends _BeganRestDurationValue { @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$BeganRestDurationValueImplCopyWith<_$BeganRestDurationValueImpl> - get copyWith => __$$BeganRestDurationValueImplCopyWithImpl< - _$BeganRestDurationValueImpl>(this, _$identity); + _$$BeganRestDurationValueImplCopyWith<_$BeganRestDurationValueImpl> get copyWith => + __$$BeganRestDurationValueImplCopyWithImpl<_$BeganRestDurationValueImpl>(this, _$identity); @override Map toJson() { @@ -2902,25 +2407,20 @@ class _$BeganRestDurationValueImpl extends _BeganRestDurationValue { } abstract class _BeganRestDurationValue extends BeganRestDurationValue { - const factory _BeganRestDurationValue( - {required final RestDuration restDuration}) = - _$BeganRestDurationValueImpl; + const factory _BeganRestDurationValue({required final RestDuration restDuration}) = _$BeganRestDurationValueImpl; const _BeganRestDurationValue._() : super._(); - factory _BeganRestDurationValue.fromJson(Map json) = - _$BeganRestDurationValueImpl.fromJson; + factory _BeganRestDurationValue.fromJson(Map json) = _$BeganRestDurationValueImpl.fromJson; @override // ============ BEGIN: Added since v1 ============ // どの服用お休み期間か特定するのが大変なので記録したものを使用する RestDuration get restDuration; @override @JsonKey(ignore: true) - _$$BeganRestDurationValueImplCopyWith<_$BeganRestDurationValueImpl> - get copyWith => throw _privateConstructorUsedError; + _$$BeganRestDurationValueImplCopyWith<_$BeganRestDurationValueImpl> get copyWith => throw _privateConstructorUsedError; } -EndedRestDurationValue _$EndedRestDurationValueFromJson( - Map json) { +EndedRestDurationValue _$EndedRestDurationValueFromJson(Map json) { return _EndedRestDurationValue.fromJson(json); } @@ -2932,14 +2432,12 @@ mixin _$EndedRestDurationValue { Map toJson() => throw _privateConstructorUsedError; @JsonKey(ignore: true) - $EndedRestDurationValueCopyWith get copyWith => - throw _privateConstructorUsedError; + $EndedRestDurationValueCopyWith get copyWith => throw _privateConstructorUsedError; } /// @nodoc abstract class $EndedRestDurationValueCopyWith<$Res> { - factory $EndedRestDurationValueCopyWith(EndedRestDurationValue value, - $Res Function(EndedRestDurationValue) then) = + factory $EndedRestDurationValueCopyWith(EndedRestDurationValue value, $Res Function(EndedRestDurationValue) then) = _$EndedRestDurationValueCopyWithImpl<$Res, EndedRestDurationValue>; @useResult $Res call({RestDuration restDuration}); @@ -2948,9 +2446,7 @@ abstract class $EndedRestDurationValueCopyWith<$Res> { } /// @nodoc -class _$EndedRestDurationValueCopyWithImpl<$Res, - $Val extends EndedRestDurationValue> - implements $EndedRestDurationValueCopyWith<$Res> { +class _$EndedRestDurationValueCopyWithImpl<$Res, $Val extends EndedRestDurationValue> implements $EndedRestDurationValueCopyWith<$Res> { _$EndedRestDurationValueCopyWithImpl(this._value, this._then); // ignore: unused_field @@ -2981,11 +2477,8 @@ class _$EndedRestDurationValueCopyWithImpl<$Res, } /// @nodoc -abstract class _$$EndedRestDurationValueImplCopyWith<$Res> - implements $EndedRestDurationValueCopyWith<$Res> { - factory _$$EndedRestDurationValueImplCopyWith( - _$EndedRestDurationValueImpl value, - $Res Function(_$EndedRestDurationValueImpl) then) = +abstract class _$$EndedRestDurationValueImplCopyWith<$Res> implements $EndedRestDurationValueCopyWith<$Res> { + factory _$$EndedRestDurationValueImplCopyWith(_$EndedRestDurationValueImpl value, $Res Function(_$EndedRestDurationValueImpl) then) = __$$EndedRestDurationValueImplCopyWithImpl<$Res>; @override @useResult @@ -2996,13 +2489,9 @@ abstract class _$$EndedRestDurationValueImplCopyWith<$Res> } /// @nodoc -class __$$EndedRestDurationValueImplCopyWithImpl<$Res> - extends _$EndedRestDurationValueCopyWithImpl<$Res, - _$EndedRestDurationValueImpl> +class __$$EndedRestDurationValueImplCopyWithImpl<$Res> extends _$EndedRestDurationValueCopyWithImpl<$Res, _$EndedRestDurationValueImpl> implements _$$EndedRestDurationValueImplCopyWith<$Res> { - __$$EndedRestDurationValueImplCopyWithImpl( - _$EndedRestDurationValueImpl _value, - $Res Function(_$EndedRestDurationValueImpl) _then) + __$$EndedRestDurationValueImplCopyWithImpl(_$EndedRestDurationValueImpl _value, $Res Function(_$EndedRestDurationValueImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -3025,8 +2514,7 @@ class __$$EndedRestDurationValueImplCopyWithImpl<$Res> class _$EndedRestDurationValueImpl extends _EndedRestDurationValue { const _$EndedRestDurationValueImpl({required this.restDuration}) : super._(); - factory _$EndedRestDurationValueImpl.fromJson(Map json) => - _$$EndedRestDurationValueImplFromJson(json); + factory _$EndedRestDurationValueImpl.fromJson(Map json) => _$$EndedRestDurationValueImplFromJson(json); // ============ BEGIN: Added since v1 ============ // どの服用お休み期間か特定するのが大変なので記録したものを使用する @@ -3043,8 +2531,7 @@ class _$EndedRestDurationValueImpl extends _EndedRestDurationValue { return identical(this, other) || (other.runtimeType == runtimeType && other is _$EndedRestDurationValueImpl && - (identical(other.restDuration, restDuration) || - other.restDuration == restDuration)); + (identical(other.restDuration, restDuration) || other.restDuration == restDuration)); } @JsonKey(ignore: true) @@ -3054,9 +2541,8 @@ class _$EndedRestDurationValueImpl extends _EndedRestDurationValue { @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$EndedRestDurationValueImplCopyWith<_$EndedRestDurationValueImpl> - get copyWith => __$$EndedRestDurationValueImplCopyWithImpl< - _$EndedRestDurationValueImpl>(this, _$identity); + _$$EndedRestDurationValueImplCopyWith<_$EndedRestDurationValueImpl> get copyWith => + __$$EndedRestDurationValueImplCopyWithImpl<_$EndedRestDurationValueImpl>(this, _$identity); @override Map toJson() { @@ -3067,25 +2553,20 @@ class _$EndedRestDurationValueImpl extends _EndedRestDurationValue { } abstract class _EndedRestDurationValue extends EndedRestDurationValue { - const factory _EndedRestDurationValue( - {required final RestDuration restDuration}) = - _$EndedRestDurationValueImpl; + const factory _EndedRestDurationValue({required final RestDuration restDuration}) = _$EndedRestDurationValueImpl; const _EndedRestDurationValue._() : super._(); - factory _EndedRestDurationValue.fromJson(Map json) = - _$EndedRestDurationValueImpl.fromJson; + factory _EndedRestDurationValue.fromJson(Map json) = _$EndedRestDurationValueImpl.fromJson; @override // ============ BEGIN: Added since v1 ============ // どの服用お休み期間か特定するのが大変なので記録したものを使用する RestDuration get restDuration; @override @JsonKey(ignore: true) - _$$EndedRestDurationValueImplCopyWith<_$EndedRestDurationValueImpl> - get copyWith => throw _privateConstructorUsedError; + _$$EndedRestDurationValueImplCopyWith<_$EndedRestDurationValueImpl> get copyWith => throw _privateConstructorUsedError; } -ChangedRestDurationBeginDateValue _$ChangedRestDurationBeginDateValueFromJson( - Map json) { +ChangedRestDurationBeginDateValue _$ChangedRestDurationBeginDateValueFromJson(Map json) { return _ChangedRestDurationBeginDateValue.fromJson(json); } @@ -3096,17 +2577,13 @@ mixin _$ChangedRestDurationBeginDateValue { Map toJson() => throw _privateConstructorUsedError; @JsonKey(ignore: true) - $ChangedRestDurationBeginDateValueCopyWith - get copyWith => throw _privateConstructorUsedError; + $ChangedRestDurationBeginDateValueCopyWith get copyWith => throw _privateConstructorUsedError; } /// @nodoc abstract class $ChangedRestDurationBeginDateValueCopyWith<$Res> { - factory $ChangedRestDurationBeginDateValueCopyWith( - ChangedRestDurationBeginDateValue value, - $Res Function(ChangedRestDurationBeginDateValue) then) = - _$ChangedRestDurationBeginDateValueCopyWithImpl<$Res, - ChangedRestDurationBeginDateValue>; + factory $ChangedRestDurationBeginDateValueCopyWith(ChangedRestDurationBeginDateValue value, $Res Function(ChangedRestDurationBeginDateValue) then) = + _$ChangedRestDurationBeginDateValueCopyWithImpl<$Res, ChangedRestDurationBeginDateValue>; @useResult $Res call({RestDuration beforeRestDuration, RestDuration afterRestDuration}); @@ -3115,8 +2592,7 @@ abstract class $ChangedRestDurationBeginDateValueCopyWith<$Res> { } /// @nodoc -class _$ChangedRestDurationBeginDateValueCopyWithImpl<$Res, - $Val extends ChangedRestDurationBeginDateValue> +class _$ChangedRestDurationBeginDateValueCopyWithImpl<$Res, $Val extends ChangedRestDurationBeginDateValue> implements $ChangedRestDurationBeginDateValueCopyWith<$Res> { _$ChangedRestDurationBeginDateValueCopyWithImpl(this._value, this._then); @@ -3161,11 +2637,9 @@ class _$ChangedRestDurationBeginDateValueCopyWithImpl<$Res, } /// @nodoc -abstract class _$$ChangedRestDurationBeginDateValueImplCopyWith<$Res> - implements $ChangedRestDurationBeginDateValueCopyWith<$Res> { +abstract class _$$ChangedRestDurationBeginDateValueImplCopyWith<$Res> implements $ChangedRestDurationBeginDateValueCopyWith<$Res> { factory _$$ChangedRestDurationBeginDateValueImplCopyWith( - _$ChangedRestDurationBeginDateValueImpl value, - $Res Function(_$ChangedRestDurationBeginDateValueImpl) then) = + _$ChangedRestDurationBeginDateValueImpl value, $Res Function(_$ChangedRestDurationBeginDateValueImpl) then) = __$$ChangedRestDurationBeginDateValueImplCopyWithImpl<$Res>; @override @useResult @@ -3179,12 +2653,10 @@ abstract class _$$ChangedRestDurationBeginDateValueImplCopyWith<$Res> /// @nodoc class __$$ChangedRestDurationBeginDateValueImplCopyWithImpl<$Res> - extends _$ChangedRestDurationBeginDateValueCopyWithImpl<$Res, - _$ChangedRestDurationBeginDateValueImpl> + extends _$ChangedRestDurationBeginDateValueCopyWithImpl<$Res, _$ChangedRestDurationBeginDateValueImpl> implements _$$ChangedRestDurationBeginDateValueImplCopyWith<$Res> { __$$ChangedRestDurationBeginDateValueImplCopyWithImpl( - _$ChangedRestDurationBeginDateValueImpl _value, - $Res Function(_$ChangedRestDurationBeginDateValueImpl) _then) + _$ChangedRestDurationBeginDateValueImpl _value, $Res Function(_$ChangedRestDurationBeginDateValueImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -3209,15 +2681,10 @@ class __$$ChangedRestDurationBeginDateValueImplCopyWithImpl<$Res> /// @nodoc @JsonSerializable(explicitToJson: true) -class _$ChangedRestDurationBeginDateValueImpl - extends _ChangedRestDurationBeginDateValue { - const _$ChangedRestDurationBeginDateValueImpl( - {required this.beforeRestDuration, required this.afterRestDuration}) - : super._(); +class _$ChangedRestDurationBeginDateValueImpl extends _ChangedRestDurationBeginDateValue { + const _$ChangedRestDurationBeginDateValueImpl({required this.beforeRestDuration, required this.afterRestDuration}) : super._(); - factory _$ChangedRestDurationBeginDateValueImpl.fromJson( - Map json) => - _$$ChangedRestDurationBeginDateValueImplFromJson(json); + factory _$ChangedRestDurationBeginDateValueImpl.fromJson(Map json) => _$$ChangedRestDurationBeginDateValueImplFromJson(json); @override final RestDuration beforeRestDuration; @@ -3234,24 +2701,19 @@ class _$ChangedRestDurationBeginDateValueImpl return identical(this, other) || (other.runtimeType == runtimeType && other is _$ChangedRestDurationBeginDateValueImpl && - (identical(other.beforeRestDuration, beforeRestDuration) || - other.beforeRestDuration == beforeRestDuration) && - (identical(other.afterRestDuration, afterRestDuration) || - other.afterRestDuration == afterRestDuration)); + (identical(other.beforeRestDuration, beforeRestDuration) || other.beforeRestDuration == beforeRestDuration) && + (identical(other.afterRestDuration, afterRestDuration) || other.afterRestDuration == afterRestDuration)); } @JsonKey(ignore: true) @override - int get hashCode => - Object.hash(runtimeType, beforeRestDuration, afterRestDuration); + int get hashCode => Object.hash(runtimeType, beforeRestDuration, afterRestDuration); @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$ChangedRestDurationBeginDateValueImplCopyWith< - _$ChangedRestDurationBeginDateValueImpl> - get copyWith => __$$ChangedRestDurationBeginDateValueImplCopyWithImpl< - _$ChangedRestDurationBeginDateValueImpl>(this, _$identity); + _$$ChangedRestDurationBeginDateValueImplCopyWith<_$ChangedRestDurationBeginDateValueImpl> get copyWith => + __$$ChangedRestDurationBeginDateValueImplCopyWithImpl<_$ChangedRestDurationBeginDateValueImpl>(this, _$identity); @override Map toJson() { @@ -3261,17 +2723,12 @@ class _$ChangedRestDurationBeginDateValueImpl } } -abstract class _ChangedRestDurationBeginDateValue - extends ChangedRestDurationBeginDateValue { - const factory _ChangedRestDurationBeginDateValue( - {required final RestDuration beforeRestDuration, - required final RestDuration afterRestDuration}) = +abstract class _ChangedRestDurationBeginDateValue extends ChangedRestDurationBeginDateValue { + const factory _ChangedRestDurationBeginDateValue({required final RestDuration beforeRestDuration, required final RestDuration afterRestDuration}) = _$ChangedRestDurationBeginDateValueImpl; const _ChangedRestDurationBeginDateValue._() : super._(); - factory _ChangedRestDurationBeginDateValue.fromJson( - Map json) = - _$ChangedRestDurationBeginDateValueImpl.fromJson; + factory _ChangedRestDurationBeginDateValue.fromJson(Map json) = _$ChangedRestDurationBeginDateValueImpl.fromJson; @override RestDuration get beforeRestDuration; @@ -3279,13 +2736,10 @@ abstract class _ChangedRestDurationBeginDateValue RestDuration get afterRestDuration; @override @JsonKey(ignore: true) - _$$ChangedRestDurationBeginDateValueImplCopyWith< - _$ChangedRestDurationBeginDateValueImpl> - get copyWith => throw _privateConstructorUsedError; + _$$ChangedRestDurationBeginDateValueImplCopyWith<_$ChangedRestDurationBeginDateValueImpl> get copyWith => throw _privateConstructorUsedError; } -ChangedRestDurationValue _$ChangedRestDurationValueFromJson( - Map json) { +ChangedRestDurationValue _$ChangedRestDurationValueFromJson(Map json) { return _ChangedRestDurationValue.fromJson(json); } @@ -3296,14 +2750,12 @@ mixin _$ChangedRestDurationValue { Map toJson() => throw _privateConstructorUsedError; @JsonKey(ignore: true) - $ChangedRestDurationValueCopyWith get copyWith => - throw _privateConstructorUsedError; + $ChangedRestDurationValueCopyWith get copyWith => throw _privateConstructorUsedError; } /// @nodoc abstract class $ChangedRestDurationValueCopyWith<$Res> { - factory $ChangedRestDurationValueCopyWith(ChangedRestDurationValue value, - $Res Function(ChangedRestDurationValue) then) = + factory $ChangedRestDurationValueCopyWith(ChangedRestDurationValue value, $Res Function(ChangedRestDurationValue) then) = _$ChangedRestDurationValueCopyWithImpl<$Res, ChangedRestDurationValue>; @useResult $Res call({RestDuration beforeRestDuration, RestDuration afterRestDuration}); @@ -3313,9 +2765,7 @@ abstract class $ChangedRestDurationValueCopyWith<$Res> { } /// @nodoc -class _$ChangedRestDurationValueCopyWithImpl<$Res, - $Val extends ChangedRestDurationValue> - implements $ChangedRestDurationValueCopyWith<$Res> { +class _$ChangedRestDurationValueCopyWithImpl<$Res, $Val extends ChangedRestDurationValue> implements $ChangedRestDurationValueCopyWith<$Res> { _$ChangedRestDurationValueCopyWithImpl(this._value, this._then); // ignore: unused_field @@ -3359,11 +2809,8 @@ class _$ChangedRestDurationValueCopyWithImpl<$Res, } /// @nodoc -abstract class _$$ChangedRestDurationValueImplCopyWith<$Res> - implements $ChangedRestDurationValueCopyWith<$Res> { - factory _$$ChangedRestDurationValueImplCopyWith( - _$ChangedRestDurationValueImpl value, - $Res Function(_$ChangedRestDurationValueImpl) then) = +abstract class _$$ChangedRestDurationValueImplCopyWith<$Res> implements $ChangedRestDurationValueCopyWith<$Res> { + factory _$$ChangedRestDurationValueImplCopyWith(_$ChangedRestDurationValueImpl value, $Res Function(_$ChangedRestDurationValueImpl) then) = __$$ChangedRestDurationValueImplCopyWithImpl<$Res>; @override @useResult @@ -3376,13 +2823,9 @@ abstract class _$$ChangedRestDurationValueImplCopyWith<$Res> } /// @nodoc -class __$$ChangedRestDurationValueImplCopyWithImpl<$Res> - extends _$ChangedRestDurationValueCopyWithImpl<$Res, - _$ChangedRestDurationValueImpl> +class __$$ChangedRestDurationValueImplCopyWithImpl<$Res> extends _$ChangedRestDurationValueCopyWithImpl<$Res, _$ChangedRestDurationValueImpl> implements _$$ChangedRestDurationValueImplCopyWith<$Res> { - __$$ChangedRestDurationValueImplCopyWithImpl( - _$ChangedRestDurationValueImpl _value, - $Res Function(_$ChangedRestDurationValueImpl) _then) + __$$ChangedRestDurationValueImplCopyWithImpl(_$ChangedRestDurationValueImpl _value, $Res Function(_$ChangedRestDurationValueImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -3408,12 +2851,9 @@ class __$$ChangedRestDurationValueImplCopyWithImpl<$Res> @JsonSerializable(explicitToJson: true) class _$ChangedRestDurationValueImpl extends _ChangedRestDurationValue { - const _$ChangedRestDurationValueImpl( - {required this.beforeRestDuration, required this.afterRestDuration}) - : super._(); + const _$ChangedRestDurationValueImpl({required this.beforeRestDuration, required this.afterRestDuration}) : super._(); - factory _$ChangedRestDurationValueImpl.fromJson(Map json) => - _$$ChangedRestDurationValueImplFromJson(json); + factory _$ChangedRestDurationValueImpl.fromJson(Map json) => _$$ChangedRestDurationValueImplFromJson(json); @override final RestDuration beforeRestDuration; @@ -3430,23 +2870,19 @@ class _$ChangedRestDurationValueImpl extends _ChangedRestDurationValue { return identical(this, other) || (other.runtimeType == runtimeType && other is _$ChangedRestDurationValueImpl && - (identical(other.beforeRestDuration, beforeRestDuration) || - other.beforeRestDuration == beforeRestDuration) && - (identical(other.afterRestDuration, afterRestDuration) || - other.afterRestDuration == afterRestDuration)); + (identical(other.beforeRestDuration, beforeRestDuration) || other.beforeRestDuration == beforeRestDuration) && + (identical(other.afterRestDuration, afterRestDuration) || other.afterRestDuration == afterRestDuration)); } @JsonKey(ignore: true) @override - int get hashCode => - Object.hash(runtimeType, beforeRestDuration, afterRestDuration); + int get hashCode => Object.hash(runtimeType, beforeRestDuration, afterRestDuration); @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$ChangedRestDurationValueImplCopyWith<_$ChangedRestDurationValueImpl> - get copyWith => __$$ChangedRestDurationValueImplCopyWithImpl< - _$ChangedRestDurationValueImpl>(this, _$identity); + _$$ChangedRestDurationValueImplCopyWith<_$ChangedRestDurationValueImpl> get copyWith => + __$$ChangedRestDurationValueImplCopyWithImpl<_$ChangedRestDurationValueImpl>(this, _$identity); @override Map toJson() { @@ -3457,14 +2893,11 @@ class _$ChangedRestDurationValueImpl extends _ChangedRestDurationValue { } abstract class _ChangedRestDurationValue extends ChangedRestDurationValue { - const factory _ChangedRestDurationValue( - {required final RestDuration beforeRestDuration, - required final RestDuration afterRestDuration}) = + const factory _ChangedRestDurationValue({required final RestDuration beforeRestDuration, required final RestDuration afterRestDuration}) = _$ChangedRestDurationValueImpl; const _ChangedRestDurationValue._() : super._(); - factory _ChangedRestDurationValue.fromJson(Map json) = - _$ChangedRestDurationValueImpl.fromJson; + factory _ChangedRestDurationValue.fromJson(Map json) = _$ChangedRestDurationValueImpl.fromJson; @override RestDuration get beforeRestDuration; @@ -3472,12 +2905,10 @@ abstract class _ChangedRestDurationValue extends ChangedRestDurationValue { RestDuration get afterRestDuration; @override @JsonKey(ignore: true) - _$$ChangedRestDurationValueImplCopyWith<_$ChangedRestDurationValueImpl> - get copyWith => throw _privateConstructorUsedError; + _$$ChangedRestDurationValueImplCopyWith<_$ChangedRestDurationValueImpl> get copyWith => throw _privateConstructorUsedError; } -ChangedBeginDisplayNumberValue _$ChangedBeginDisplayNumberValueFromJson( - Map json) { +ChangedBeginDisplayNumberValue _$ChangedBeginDisplayNumberValueFromJson(Map json) { return _ChangedBeginDisplayNumberValue.fromJson(json); } @@ -3486,38 +2917,27 @@ mixin _$ChangedBeginDisplayNumberValue { // The below properties are deprecated and added since v1. // This is deprecated property. TODO: [PillSheetModifiedHistory-V2] delete after 2024-05-01 // 番号を変更した事が無い場合もあるのでnullable - PillSheetGroupDisplayNumberSetting? get beforeDisplayNumberSetting => - throw _privateConstructorUsedError; - PillSheetGroupDisplayNumberSetting get afterDisplayNumberSetting => - throw _privateConstructorUsedError; + PillSheetGroupDisplayNumberSetting? get beforeDisplayNumberSetting => throw _privateConstructorUsedError; + PillSheetGroupDisplayNumberSetting get afterDisplayNumberSetting => throw _privateConstructorUsedError; Map toJson() => throw _privateConstructorUsedError; @JsonKey(ignore: true) - $ChangedBeginDisplayNumberValueCopyWith - get copyWith => throw _privateConstructorUsedError; + $ChangedBeginDisplayNumberValueCopyWith get copyWith => throw _privateConstructorUsedError; } /// @nodoc abstract class $ChangedBeginDisplayNumberValueCopyWith<$Res> { - factory $ChangedBeginDisplayNumberValueCopyWith( - ChangedBeginDisplayNumberValue value, - $Res Function(ChangedBeginDisplayNumberValue) then) = - _$ChangedBeginDisplayNumberValueCopyWithImpl<$Res, - ChangedBeginDisplayNumberValue>; + factory $ChangedBeginDisplayNumberValueCopyWith(ChangedBeginDisplayNumberValue value, $Res Function(ChangedBeginDisplayNumberValue) then) = + _$ChangedBeginDisplayNumberValueCopyWithImpl<$Res, ChangedBeginDisplayNumberValue>; @useResult - $Res call( - {PillSheetGroupDisplayNumberSetting? beforeDisplayNumberSetting, - PillSheetGroupDisplayNumberSetting afterDisplayNumberSetting}); + $Res call({PillSheetGroupDisplayNumberSetting? beforeDisplayNumberSetting, PillSheetGroupDisplayNumberSetting afterDisplayNumberSetting}); - $PillSheetGroupDisplayNumberSettingCopyWith<$Res>? - get beforeDisplayNumberSetting; - $PillSheetGroupDisplayNumberSettingCopyWith<$Res> - get afterDisplayNumberSetting; + $PillSheetGroupDisplayNumberSettingCopyWith<$Res>? get beforeDisplayNumberSetting; + $PillSheetGroupDisplayNumberSettingCopyWith<$Res> get afterDisplayNumberSetting; } /// @nodoc -class _$ChangedBeginDisplayNumberValueCopyWithImpl<$Res, - $Val extends ChangedBeginDisplayNumberValue> +class _$ChangedBeginDisplayNumberValueCopyWithImpl<$Res, $Val extends ChangedBeginDisplayNumberValue> implements $ChangedBeginDisplayNumberValueCopyWith<$Res> { _$ChangedBeginDisplayNumberValueCopyWithImpl(this._value, this._then); @@ -3546,58 +2966,46 @@ class _$ChangedBeginDisplayNumberValueCopyWithImpl<$Res, @override @pragma('vm:prefer-inline') - $PillSheetGroupDisplayNumberSettingCopyWith<$Res>? - get beforeDisplayNumberSetting { + $PillSheetGroupDisplayNumberSettingCopyWith<$Res>? get beforeDisplayNumberSetting { if (_value.beforeDisplayNumberSetting == null) { return null; } - return $PillSheetGroupDisplayNumberSettingCopyWith<$Res>( - _value.beforeDisplayNumberSetting!, (value) { + return $PillSheetGroupDisplayNumberSettingCopyWith<$Res>(_value.beforeDisplayNumberSetting!, (value) { return _then(_value.copyWith(beforeDisplayNumberSetting: value) as $Val); }); } @override @pragma('vm:prefer-inline') - $PillSheetGroupDisplayNumberSettingCopyWith<$Res> - get afterDisplayNumberSetting { - return $PillSheetGroupDisplayNumberSettingCopyWith<$Res>( - _value.afterDisplayNumberSetting, (value) { + $PillSheetGroupDisplayNumberSettingCopyWith<$Res> get afterDisplayNumberSetting { + return $PillSheetGroupDisplayNumberSettingCopyWith<$Res>(_value.afterDisplayNumberSetting, (value) { return _then(_value.copyWith(afterDisplayNumberSetting: value) as $Val); }); } } /// @nodoc -abstract class _$$ChangedBeginDisplayNumberValueImplCopyWith<$Res> - implements $ChangedBeginDisplayNumberValueCopyWith<$Res> { +abstract class _$$ChangedBeginDisplayNumberValueImplCopyWith<$Res> implements $ChangedBeginDisplayNumberValueCopyWith<$Res> { factory _$$ChangedBeginDisplayNumberValueImplCopyWith( - _$ChangedBeginDisplayNumberValueImpl value, - $Res Function(_$ChangedBeginDisplayNumberValueImpl) then) = + _$ChangedBeginDisplayNumberValueImpl value, $Res Function(_$ChangedBeginDisplayNumberValueImpl) then) = __$$ChangedBeginDisplayNumberValueImplCopyWithImpl<$Res>; @override @useResult - $Res call( - {PillSheetGroupDisplayNumberSetting? beforeDisplayNumberSetting, - PillSheetGroupDisplayNumberSetting afterDisplayNumberSetting}); + $Res call({PillSheetGroupDisplayNumberSetting? beforeDisplayNumberSetting, PillSheetGroupDisplayNumberSetting afterDisplayNumberSetting}); @override - $PillSheetGroupDisplayNumberSettingCopyWith<$Res>? - get beforeDisplayNumberSetting; + $PillSheetGroupDisplayNumberSettingCopyWith<$Res>? get beforeDisplayNumberSetting; @override - $PillSheetGroupDisplayNumberSettingCopyWith<$Res> - get afterDisplayNumberSetting; + $PillSheetGroupDisplayNumberSettingCopyWith<$Res> get afterDisplayNumberSetting; } /// @nodoc class __$$ChangedBeginDisplayNumberValueImplCopyWithImpl<$Res> - extends _$ChangedBeginDisplayNumberValueCopyWithImpl<$Res, - _$ChangedBeginDisplayNumberValueImpl> + extends _$ChangedBeginDisplayNumberValueCopyWithImpl<$Res, _$ChangedBeginDisplayNumberValueImpl> implements _$$ChangedBeginDisplayNumberValueImplCopyWith<$Res> { __$$ChangedBeginDisplayNumberValueImplCopyWithImpl( - _$ChangedBeginDisplayNumberValueImpl _value, - $Res Function(_$ChangedBeginDisplayNumberValueImpl) _then) + _$ChangedBeginDisplayNumberValueImpl _value, $Res Function(_$ChangedBeginDisplayNumberValueImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -3622,16 +3030,10 @@ class __$$ChangedBeginDisplayNumberValueImplCopyWithImpl<$Res> /// @nodoc @JsonSerializable(explicitToJson: true) -class _$ChangedBeginDisplayNumberValueImpl - extends _ChangedBeginDisplayNumberValue { - const _$ChangedBeginDisplayNumberValueImpl( - {required this.beforeDisplayNumberSetting, - required this.afterDisplayNumberSetting}) - : super._(); +class _$ChangedBeginDisplayNumberValueImpl extends _ChangedBeginDisplayNumberValue { + const _$ChangedBeginDisplayNumberValueImpl({required this.beforeDisplayNumberSetting, required this.afterDisplayNumberSetting}) : super._(); - factory _$ChangedBeginDisplayNumberValueImpl.fromJson( - Map json) => - _$$ChangedBeginDisplayNumberValueImplFromJson(json); + factory _$ChangedBeginDisplayNumberValueImpl.fromJson(Map json) => _$$ChangedBeginDisplayNumberValueImplFromJson(json); // The below properties are deprecated and added since v1. // This is deprecated property. TODO: [PillSheetModifiedHistory-V2] delete after 2024-05-01 @@ -3651,27 +3053,20 @@ class _$ChangedBeginDisplayNumberValueImpl return identical(this, other) || (other.runtimeType == runtimeType && other is _$ChangedBeginDisplayNumberValueImpl && - (identical(other.beforeDisplayNumberSetting, - beforeDisplayNumberSetting) || - other.beforeDisplayNumberSetting == - beforeDisplayNumberSetting) && - (identical(other.afterDisplayNumberSetting, - afterDisplayNumberSetting) || - other.afterDisplayNumberSetting == afterDisplayNumberSetting)); + (identical(other.beforeDisplayNumberSetting, beforeDisplayNumberSetting) || + other.beforeDisplayNumberSetting == beforeDisplayNumberSetting) && + (identical(other.afterDisplayNumberSetting, afterDisplayNumberSetting) || other.afterDisplayNumberSetting == afterDisplayNumberSetting)); } @JsonKey(ignore: true) @override - int get hashCode => Object.hash( - runtimeType, beforeDisplayNumberSetting, afterDisplayNumberSetting); + int get hashCode => Object.hash(runtimeType, beforeDisplayNumberSetting, afterDisplayNumberSetting); @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$ChangedBeginDisplayNumberValueImplCopyWith< - _$ChangedBeginDisplayNumberValueImpl> - get copyWith => __$$ChangedBeginDisplayNumberValueImplCopyWithImpl< - _$ChangedBeginDisplayNumberValueImpl>(this, _$identity); + _$$ChangedBeginDisplayNumberValueImplCopyWith<_$ChangedBeginDisplayNumberValueImpl> get copyWith => + __$$ChangedBeginDisplayNumberValueImplCopyWithImpl<_$ChangedBeginDisplayNumberValueImpl>(this, _$identity); @override Map toJson() { @@ -3681,17 +3076,13 @@ class _$ChangedBeginDisplayNumberValueImpl } } -abstract class _ChangedBeginDisplayNumberValue - extends ChangedBeginDisplayNumberValue { +abstract class _ChangedBeginDisplayNumberValue extends ChangedBeginDisplayNumberValue { const factory _ChangedBeginDisplayNumberValue( - {required final PillSheetGroupDisplayNumberSetting? - beforeDisplayNumberSetting, - required final PillSheetGroupDisplayNumberSetting - afterDisplayNumberSetting}) = _$ChangedBeginDisplayNumberValueImpl; + {required final PillSheetGroupDisplayNumberSetting? beforeDisplayNumberSetting, + required final PillSheetGroupDisplayNumberSetting afterDisplayNumberSetting}) = _$ChangedBeginDisplayNumberValueImpl; const _ChangedBeginDisplayNumberValue._() : super._(); - factory _ChangedBeginDisplayNumberValue.fromJson(Map json) = - _$ChangedBeginDisplayNumberValueImpl.fromJson; + factory _ChangedBeginDisplayNumberValue.fromJson(Map json) = _$ChangedBeginDisplayNumberValueImpl.fromJson; @override // The below properties are deprecated and added since v1. // This is deprecated property. TODO: [PillSheetModifiedHistory-V2] delete after 2024-05-01 @@ -3701,13 +3092,10 @@ abstract class _ChangedBeginDisplayNumberValue PillSheetGroupDisplayNumberSetting get afterDisplayNumberSetting; @override @JsonKey(ignore: true) - _$$ChangedBeginDisplayNumberValueImplCopyWith< - _$ChangedBeginDisplayNumberValueImpl> - get copyWith => throw _privateConstructorUsedError; + _$$ChangedBeginDisplayNumberValueImplCopyWith<_$ChangedBeginDisplayNumberValueImpl> get copyWith => throw _privateConstructorUsedError; } -ChangedEndDisplayNumberValue _$ChangedEndDisplayNumberValueFromJson( - Map json) { +ChangedEndDisplayNumberValue _$ChangedEndDisplayNumberValueFromJson(Map json) { return _ChangedEndDisplayNumberValue.fromJson(json); } @@ -3716,38 +3104,27 @@ mixin _$ChangedEndDisplayNumberValue { // The below properties are deprecated and added since v1. // This is deprecated property. TODO: [PillSheetModifiedHistory-V2] delete after 2024-05-01 // 番号を変更した事が無い場合もあるのでnullable - PillSheetGroupDisplayNumberSetting? get beforeDisplayNumberSetting => - throw _privateConstructorUsedError; - PillSheetGroupDisplayNumberSetting get afterDisplayNumberSetting => - throw _privateConstructorUsedError; + PillSheetGroupDisplayNumberSetting? get beforeDisplayNumberSetting => throw _privateConstructorUsedError; + PillSheetGroupDisplayNumberSetting get afterDisplayNumberSetting => throw _privateConstructorUsedError; Map toJson() => throw _privateConstructorUsedError; @JsonKey(ignore: true) - $ChangedEndDisplayNumberValueCopyWith - get copyWith => throw _privateConstructorUsedError; + $ChangedEndDisplayNumberValueCopyWith get copyWith => throw _privateConstructorUsedError; } /// @nodoc abstract class $ChangedEndDisplayNumberValueCopyWith<$Res> { - factory $ChangedEndDisplayNumberValueCopyWith( - ChangedEndDisplayNumberValue value, - $Res Function(ChangedEndDisplayNumberValue) then) = - _$ChangedEndDisplayNumberValueCopyWithImpl<$Res, - ChangedEndDisplayNumberValue>; + factory $ChangedEndDisplayNumberValueCopyWith(ChangedEndDisplayNumberValue value, $Res Function(ChangedEndDisplayNumberValue) then) = + _$ChangedEndDisplayNumberValueCopyWithImpl<$Res, ChangedEndDisplayNumberValue>; @useResult - $Res call( - {PillSheetGroupDisplayNumberSetting? beforeDisplayNumberSetting, - PillSheetGroupDisplayNumberSetting afterDisplayNumberSetting}); + $Res call({PillSheetGroupDisplayNumberSetting? beforeDisplayNumberSetting, PillSheetGroupDisplayNumberSetting afterDisplayNumberSetting}); - $PillSheetGroupDisplayNumberSettingCopyWith<$Res>? - get beforeDisplayNumberSetting; - $PillSheetGroupDisplayNumberSettingCopyWith<$Res> - get afterDisplayNumberSetting; + $PillSheetGroupDisplayNumberSettingCopyWith<$Res>? get beforeDisplayNumberSetting; + $PillSheetGroupDisplayNumberSettingCopyWith<$Res> get afterDisplayNumberSetting; } /// @nodoc -class _$ChangedEndDisplayNumberValueCopyWithImpl<$Res, - $Val extends ChangedEndDisplayNumberValue> +class _$ChangedEndDisplayNumberValueCopyWithImpl<$Res, $Val extends ChangedEndDisplayNumberValue> implements $ChangedEndDisplayNumberValueCopyWith<$Res> { _$ChangedEndDisplayNumberValueCopyWithImpl(this._value, this._then); @@ -3776,58 +3153,45 @@ class _$ChangedEndDisplayNumberValueCopyWithImpl<$Res, @override @pragma('vm:prefer-inline') - $PillSheetGroupDisplayNumberSettingCopyWith<$Res>? - get beforeDisplayNumberSetting { + $PillSheetGroupDisplayNumberSettingCopyWith<$Res>? get beforeDisplayNumberSetting { if (_value.beforeDisplayNumberSetting == null) { return null; } - return $PillSheetGroupDisplayNumberSettingCopyWith<$Res>( - _value.beforeDisplayNumberSetting!, (value) { + return $PillSheetGroupDisplayNumberSettingCopyWith<$Res>(_value.beforeDisplayNumberSetting!, (value) { return _then(_value.copyWith(beforeDisplayNumberSetting: value) as $Val); }); } @override @pragma('vm:prefer-inline') - $PillSheetGroupDisplayNumberSettingCopyWith<$Res> - get afterDisplayNumberSetting { - return $PillSheetGroupDisplayNumberSettingCopyWith<$Res>( - _value.afterDisplayNumberSetting, (value) { + $PillSheetGroupDisplayNumberSettingCopyWith<$Res> get afterDisplayNumberSetting { + return $PillSheetGroupDisplayNumberSettingCopyWith<$Res>(_value.afterDisplayNumberSetting, (value) { return _then(_value.copyWith(afterDisplayNumberSetting: value) as $Val); }); } } /// @nodoc -abstract class _$$ChangedEndDisplayNumberValueImplCopyWith<$Res> - implements $ChangedEndDisplayNumberValueCopyWith<$Res> { +abstract class _$$ChangedEndDisplayNumberValueImplCopyWith<$Res> implements $ChangedEndDisplayNumberValueCopyWith<$Res> { factory _$$ChangedEndDisplayNumberValueImplCopyWith( - _$ChangedEndDisplayNumberValueImpl value, - $Res Function(_$ChangedEndDisplayNumberValueImpl) then) = + _$ChangedEndDisplayNumberValueImpl value, $Res Function(_$ChangedEndDisplayNumberValueImpl) then) = __$$ChangedEndDisplayNumberValueImplCopyWithImpl<$Res>; @override @useResult - $Res call( - {PillSheetGroupDisplayNumberSetting? beforeDisplayNumberSetting, - PillSheetGroupDisplayNumberSetting afterDisplayNumberSetting}); + $Res call({PillSheetGroupDisplayNumberSetting? beforeDisplayNumberSetting, PillSheetGroupDisplayNumberSetting afterDisplayNumberSetting}); @override - $PillSheetGroupDisplayNumberSettingCopyWith<$Res>? - get beforeDisplayNumberSetting; + $PillSheetGroupDisplayNumberSettingCopyWith<$Res>? get beforeDisplayNumberSetting; @override - $PillSheetGroupDisplayNumberSettingCopyWith<$Res> - get afterDisplayNumberSetting; + $PillSheetGroupDisplayNumberSettingCopyWith<$Res> get afterDisplayNumberSetting; } /// @nodoc class __$$ChangedEndDisplayNumberValueImplCopyWithImpl<$Res> - extends _$ChangedEndDisplayNumberValueCopyWithImpl<$Res, - _$ChangedEndDisplayNumberValueImpl> + extends _$ChangedEndDisplayNumberValueCopyWithImpl<$Res, _$ChangedEndDisplayNumberValueImpl> implements _$$ChangedEndDisplayNumberValueImplCopyWith<$Res> { - __$$ChangedEndDisplayNumberValueImplCopyWithImpl( - _$ChangedEndDisplayNumberValueImpl _value, - $Res Function(_$ChangedEndDisplayNumberValueImpl) _then) + __$$ChangedEndDisplayNumberValueImplCopyWithImpl(_$ChangedEndDisplayNumberValueImpl _value, $Res Function(_$ChangedEndDisplayNumberValueImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -3853,14 +3217,9 @@ class __$$ChangedEndDisplayNumberValueImplCopyWithImpl<$Res> @JsonSerializable(explicitToJson: true) class _$ChangedEndDisplayNumberValueImpl extends _ChangedEndDisplayNumberValue { - const _$ChangedEndDisplayNumberValueImpl( - {required this.beforeDisplayNumberSetting, - required this.afterDisplayNumberSetting}) - : super._(); + const _$ChangedEndDisplayNumberValueImpl({required this.beforeDisplayNumberSetting, required this.afterDisplayNumberSetting}) : super._(); - factory _$ChangedEndDisplayNumberValueImpl.fromJson( - Map json) => - _$$ChangedEndDisplayNumberValueImplFromJson(json); + factory _$ChangedEndDisplayNumberValueImpl.fromJson(Map json) => _$$ChangedEndDisplayNumberValueImplFromJson(json); // The below properties are deprecated and added since v1. // This is deprecated property. TODO: [PillSheetModifiedHistory-V2] delete after 2024-05-01 @@ -3880,27 +3239,20 @@ class _$ChangedEndDisplayNumberValueImpl extends _ChangedEndDisplayNumberValue { return identical(this, other) || (other.runtimeType == runtimeType && other is _$ChangedEndDisplayNumberValueImpl && - (identical(other.beforeDisplayNumberSetting, - beforeDisplayNumberSetting) || - other.beforeDisplayNumberSetting == - beforeDisplayNumberSetting) && - (identical(other.afterDisplayNumberSetting, - afterDisplayNumberSetting) || - other.afterDisplayNumberSetting == afterDisplayNumberSetting)); + (identical(other.beforeDisplayNumberSetting, beforeDisplayNumberSetting) || + other.beforeDisplayNumberSetting == beforeDisplayNumberSetting) && + (identical(other.afterDisplayNumberSetting, afterDisplayNumberSetting) || other.afterDisplayNumberSetting == afterDisplayNumberSetting)); } @JsonKey(ignore: true) @override - int get hashCode => Object.hash( - runtimeType, beforeDisplayNumberSetting, afterDisplayNumberSetting); + int get hashCode => Object.hash(runtimeType, beforeDisplayNumberSetting, afterDisplayNumberSetting); @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$ChangedEndDisplayNumberValueImplCopyWith< - _$ChangedEndDisplayNumberValueImpl> - get copyWith => __$$ChangedEndDisplayNumberValueImplCopyWithImpl< - _$ChangedEndDisplayNumberValueImpl>(this, _$identity); + _$$ChangedEndDisplayNumberValueImplCopyWith<_$ChangedEndDisplayNumberValueImpl> get copyWith => + __$$ChangedEndDisplayNumberValueImplCopyWithImpl<_$ChangedEndDisplayNumberValueImpl>(this, _$identity); @override Map toJson() { @@ -3910,17 +3262,13 @@ class _$ChangedEndDisplayNumberValueImpl extends _ChangedEndDisplayNumberValue { } } -abstract class _ChangedEndDisplayNumberValue - extends ChangedEndDisplayNumberValue { +abstract class _ChangedEndDisplayNumberValue extends ChangedEndDisplayNumberValue { const factory _ChangedEndDisplayNumberValue( - {required final PillSheetGroupDisplayNumberSetting? - beforeDisplayNumberSetting, - required final PillSheetGroupDisplayNumberSetting - afterDisplayNumberSetting}) = _$ChangedEndDisplayNumberValueImpl; + {required final PillSheetGroupDisplayNumberSetting? beforeDisplayNumberSetting, + required final PillSheetGroupDisplayNumberSetting afterDisplayNumberSetting}) = _$ChangedEndDisplayNumberValueImpl; const _ChangedEndDisplayNumberValue._() : super._(); - factory _ChangedEndDisplayNumberValue.fromJson(Map json) = - _$ChangedEndDisplayNumberValueImpl.fromJson; + factory _ChangedEndDisplayNumberValue.fromJson(Map json) = _$ChangedEndDisplayNumberValueImpl.fromJson; @override // The below properties are deprecated and added since v1. // This is deprecated property. TODO: [PillSheetModifiedHistory-V2] delete after 2024-05-01 @@ -3930,7 +3278,5 @@ abstract class _ChangedEndDisplayNumberValue PillSheetGroupDisplayNumberSetting get afterDisplayNumberSetting; @override @JsonKey(ignore: true) - _$$ChangedEndDisplayNumberValueImplCopyWith< - _$ChangedEndDisplayNumberValueImpl> - get copyWith => throw _privateConstructorUsedError; + _$$ChangedEndDisplayNumberValueImplCopyWith<_$ChangedEndDisplayNumberValueImpl> get copyWith => throw _privateConstructorUsedError; } diff --git a/lib/entity/pill_sheet_modified_history_value.codegen.g.dart b/lib/entity/pill_sheet_modified_history_value.codegen.g.dart index 3d0f293624..b3d8e2a2dc 100644 --- a/lib/entity/pill_sheet_modified_history_value.codegen.g.dart +++ b/lib/entity/pill_sheet_modified_history_value.codegen.g.dart @@ -6,73 +6,38 @@ part of 'pill_sheet_modified_history_value.codegen.dart'; // JsonSerializableGenerator // ************************************************************************** -_$PillSheetModifiedHistoryValueImpl - _$$PillSheetModifiedHistoryValueImplFromJson(Map json) => - _$PillSheetModifiedHistoryValueImpl( - createdPillSheet: json['createdPillSheet'] == null - ? null - : CreatedPillSheetValue.fromJson( - json['createdPillSheet'] as Map), - automaticallyRecordedLastTakenDate: - json['automaticallyRecordedLastTakenDate'] == null - ? null - : AutomaticallyRecordedLastTakenDateValue.fromJson( - json['automaticallyRecordedLastTakenDate'] - as Map), - deletedPillSheet: json['deletedPillSheet'] == null - ? null - : DeletedPillSheetValue.fromJson( - json['deletedPillSheet'] as Map), - takenPill: json['takenPill'] == null - ? null - : TakenPillValue.fromJson( - json['takenPill'] as Map), - revertTakenPill: json['revertTakenPill'] == null - ? null - : RevertTakenPillValue.fromJson( - json['revertTakenPill'] as Map), - changedPillNumber: json['changedPillNumber'] == null - ? null - : ChangedPillNumberValue.fromJson( - json['changedPillNumber'] as Map), - endedPillSheet: json['endedPillSheet'] == null - ? null - : EndedPillSheetValue.fromJson( - json['endedPillSheet'] as Map), - beganRestDurationValue: json['beganRestDurationValue'] == null - ? null - : BeganRestDurationValue.fromJson( - json['beganRestDurationValue'] as Map), - endedRestDurationValue: json['endedRestDurationValue'] == null - ? null - : EndedRestDurationValue.fromJson( - json['endedRestDurationValue'] as Map), - changedRestDurationBeginDateValue: - json['changedRestDurationBeginDateValue'] == null - ? null - : ChangedRestDurationBeginDateValue.fromJson( - json['changedRestDurationBeginDateValue'] - as Map), - changedRestDurationValue: json['changedRestDurationValue'] == null - ? null - : ChangedRestDurationValue.fromJson( - json['changedRestDurationValue'] as Map), - changedBeginDisplayNumber: json['changedBeginDisplayNumber'] == null - ? null - : ChangedBeginDisplayNumberValue.fromJson( - json['changedBeginDisplayNumber'] as Map), - changedEndDisplayNumber: json['changedEndDisplayNumber'] == null - ? null - : ChangedEndDisplayNumberValue.fromJson( - json['changedEndDisplayNumber'] as Map), - ); - -Map _$$PillSheetModifiedHistoryValueImplToJson( - _$PillSheetModifiedHistoryValueImpl instance) => - { +_$PillSheetModifiedHistoryValueImpl _$$PillSheetModifiedHistoryValueImplFromJson(Map json) => _$PillSheetModifiedHistoryValueImpl( + createdPillSheet: json['createdPillSheet'] == null ? null : CreatedPillSheetValue.fromJson(json['createdPillSheet'] as Map), + automaticallyRecordedLastTakenDate: json['automaticallyRecordedLastTakenDate'] == null + ? null + : AutomaticallyRecordedLastTakenDateValue.fromJson(json['automaticallyRecordedLastTakenDate'] as Map), + deletedPillSheet: json['deletedPillSheet'] == null ? null : DeletedPillSheetValue.fromJson(json['deletedPillSheet'] as Map), + takenPill: json['takenPill'] == null ? null : TakenPillValue.fromJson(json['takenPill'] as Map), + revertTakenPill: json['revertTakenPill'] == null ? null : RevertTakenPillValue.fromJson(json['revertTakenPill'] as Map), + changedPillNumber: + json['changedPillNumber'] == null ? null : ChangedPillNumberValue.fromJson(json['changedPillNumber'] as Map), + endedPillSheet: json['endedPillSheet'] == null ? null : EndedPillSheetValue.fromJson(json['endedPillSheet'] as Map), + beganRestDurationValue: + json['beganRestDurationValue'] == null ? null : BeganRestDurationValue.fromJson(json['beganRestDurationValue'] as Map), + endedRestDurationValue: + json['endedRestDurationValue'] == null ? null : EndedRestDurationValue.fromJson(json['endedRestDurationValue'] as Map), + changedRestDurationBeginDateValue: json['changedRestDurationBeginDateValue'] == null + ? null + : ChangedRestDurationBeginDateValue.fromJson(json['changedRestDurationBeginDateValue'] as Map), + changedRestDurationValue: json['changedRestDurationValue'] == null + ? null + : ChangedRestDurationValue.fromJson(json['changedRestDurationValue'] as Map), + changedBeginDisplayNumber: json['changedBeginDisplayNumber'] == null + ? null + : ChangedBeginDisplayNumberValue.fromJson(json['changedBeginDisplayNumber'] as Map), + changedEndDisplayNumber: json['changedEndDisplayNumber'] == null + ? null + : ChangedEndDisplayNumberValue.fromJson(json['changedEndDisplayNumber'] as Map), + ); + +Map _$$PillSheetModifiedHistoryValueImplToJson(_$PillSheetModifiedHistoryValueImpl instance) => { 'createdPillSheet': instance.createdPillSheet?.toJson(), - 'automaticallyRecordedLastTakenDate': - instance.automaticallyRecordedLastTakenDate?.toJson(), + 'automaticallyRecordedLastTakenDate': instance.automaticallyRecordedLastTakenDate?.toJson(), 'deletedPillSheet': instance.deletedPillSheet?.toJson(), 'takenPill': instance.takenPill?.toJson(), 'revertTakenPill': instance.revertTakenPill?.toJson(), @@ -80,290 +45,177 @@ Map _$$PillSheetModifiedHistoryValueImplToJson( 'endedPillSheet': instance.endedPillSheet?.toJson(), 'beganRestDurationValue': instance.beganRestDurationValue?.toJson(), 'endedRestDurationValue': instance.endedRestDurationValue?.toJson(), - 'changedRestDurationBeginDateValue': - instance.changedRestDurationBeginDateValue?.toJson(), + 'changedRestDurationBeginDateValue': instance.changedRestDurationBeginDateValue?.toJson(), 'changedRestDurationValue': instance.changedRestDurationValue?.toJson(), 'changedBeginDisplayNumber': instance.changedBeginDisplayNumber?.toJson(), 'changedEndDisplayNumber': instance.changedEndDisplayNumber?.toJson(), }; -_$CreatedPillSheetValueImpl _$$CreatedPillSheetValueImplFromJson( - Map json) => - _$CreatedPillSheetValueImpl( - pillSheetCreatedAt: NonNullTimestampConverter.timestampToDateTime( - json['pillSheetCreatedAt'] as Timestamp), - pillSheetIDs: (json['pillSheetIDs'] as List?) - ?.map((e) => e as String) - .toList() ?? - const [], +_$CreatedPillSheetValueImpl _$$CreatedPillSheetValueImplFromJson(Map json) => _$CreatedPillSheetValueImpl( + pillSheetCreatedAt: NonNullTimestampConverter.timestampToDateTime(json['pillSheetCreatedAt'] as Timestamp), + pillSheetIDs: (json['pillSheetIDs'] as List?)?.map((e) => e as String).toList() ?? const [], ); -Map _$$CreatedPillSheetValueImplToJson( - _$CreatedPillSheetValueImpl instance) => - { - 'pillSheetCreatedAt': NonNullTimestampConverter.dateTimeToTimestamp( - instance.pillSheetCreatedAt), +Map _$$CreatedPillSheetValueImplToJson(_$CreatedPillSheetValueImpl instance) => { + 'pillSheetCreatedAt': NonNullTimestampConverter.dateTimeToTimestamp(instance.pillSheetCreatedAt), 'pillSheetIDs': instance.pillSheetIDs, }; -_$AutomaticallyRecordedLastTakenDateValueImpl - _$$AutomaticallyRecordedLastTakenDateValueImplFromJson( - Map json) => - _$AutomaticallyRecordedLastTakenDateValueImpl( - beforeLastTakenDate: TimestampConverter.timestampToDateTime( - json['beforeLastTakenDate'] as Timestamp?), - afterLastTakenDate: NonNullTimestampConverter.timestampToDateTime( - json['afterLastTakenDate'] as Timestamp), - beforeLastTakenPillNumber: - (json['beforeLastTakenPillNumber'] as num).toInt(), - afterLastTakenPillNumber: - (json['afterLastTakenPillNumber'] as num).toInt(), - ); - -Map _$$AutomaticallyRecordedLastTakenDateValueImplToJson( - _$AutomaticallyRecordedLastTakenDateValueImpl instance) => +_$AutomaticallyRecordedLastTakenDateValueImpl _$$AutomaticallyRecordedLastTakenDateValueImplFromJson(Map json) => + _$AutomaticallyRecordedLastTakenDateValueImpl( + beforeLastTakenDate: TimestampConverter.timestampToDateTime(json['beforeLastTakenDate'] as Timestamp?), + afterLastTakenDate: NonNullTimestampConverter.timestampToDateTime(json['afterLastTakenDate'] as Timestamp), + beforeLastTakenPillNumber: (json['beforeLastTakenPillNumber'] as num).toInt(), + afterLastTakenPillNumber: (json['afterLastTakenPillNumber'] as num).toInt(), + ); + +Map _$$AutomaticallyRecordedLastTakenDateValueImplToJson(_$AutomaticallyRecordedLastTakenDateValueImpl instance) => { - 'beforeLastTakenDate': - TimestampConverter.dateTimeToTimestamp(instance.beforeLastTakenDate), - 'afterLastTakenDate': NonNullTimestampConverter.dateTimeToTimestamp( - instance.afterLastTakenDate), + 'beforeLastTakenDate': TimestampConverter.dateTimeToTimestamp(instance.beforeLastTakenDate), + 'afterLastTakenDate': NonNullTimestampConverter.dateTimeToTimestamp(instance.afterLastTakenDate), 'beforeLastTakenPillNumber': instance.beforeLastTakenPillNumber, 'afterLastTakenPillNumber': instance.afterLastTakenPillNumber, }; -_$DeletedPillSheetValueImpl _$$DeletedPillSheetValueImplFromJson( - Map json) => - _$DeletedPillSheetValueImpl( - pillSheetDeletedAt: NonNullTimestampConverter.timestampToDateTime( - json['pillSheetDeletedAt'] as Timestamp), - pillSheetIDs: (json['pillSheetIDs'] as List?) - ?.map((e) => e as String) - .toList() ?? - const [], +_$DeletedPillSheetValueImpl _$$DeletedPillSheetValueImplFromJson(Map json) => _$DeletedPillSheetValueImpl( + pillSheetDeletedAt: NonNullTimestampConverter.timestampToDateTime(json['pillSheetDeletedAt'] as Timestamp), + pillSheetIDs: (json['pillSheetIDs'] as List?)?.map((e) => e as String).toList() ?? const [], ); -Map _$$DeletedPillSheetValueImplToJson( - _$DeletedPillSheetValueImpl instance) => - { - 'pillSheetDeletedAt': NonNullTimestampConverter.dateTimeToTimestamp( - instance.pillSheetDeletedAt), +Map _$$DeletedPillSheetValueImplToJson(_$DeletedPillSheetValueImpl instance) => { + 'pillSheetDeletedAt': NonNullTimestampConverter.dateTimeToTimestamp(instance.pillSheetDeletedAt), 'pillSheetIDs': instance.pillSheetIDs, }; -_$TakenPillValueImpl _$$TakenPillValueImplFromJson(Map json) => - _$TakenPillValueImpl( +_$TakenPillValueImpl _$$TakenPillValueImplFromJson(Map json) => _$TakenPillValueImpl( isQuickRecord: json['isQuickRecord'] as bool?, - edited: json['edited'] == null - ? null - : TakenPillEditedValue.fromJson( - json['edited'] as Map), - beforeLastTakenDate: TimestampConverter.timestampToDateTime( - json['beforeLastTakenDate'] as Timestamp?), - afterLastTakenDate: NonNullTimestampConverter.timestampToDateTime( - json['afterLastTakenDate'] as Timestamp), - beforeLastTakenPillNumber: - (json['beforeLastTakenPillNumber'] as num).toInt(), - afterLastTakenPillNumber: - (json['afterLastTakenPillNumber'] as num).toInt(), + edited: json['edited'] == null ? null : TakenPillEditedValue.fromJson(json['edited'] as Map), + beforeLastTakenDate: TimestampConverter.timestampToDateTime(json['beforeLastTakenDate'] as Timestamp?), + afterLastTakenDate: NonNullTimestampConverter.timestampToDateTime(json['afterLastTakenDate'] as Timestamp), + beforeLastTakenPillNumber: (json['beforeLastTakenPillNumber'] as num).toInt(), + afterLastTakenPillNumber: (json['afterLastTakenPillNumber'] as num).toInt(), ); -Map _$$TakenPillValueImplToJson( - _$TakenPillValueImpl instance) => - { +Map _$$TakenPillValueImplToJson(_$TakenPillValueImpl instance) => { 'isQuickRecord': instance.isQuickRecord, 'edited': instance.edited?.toJson(), - 'beforeLastTakenDate': - TimestampConverter.dateTimeToTimestamp(instance.beforeLastTakenDate), - 'afterLastTakenDate': NonNullTimestampConverter.dateTimeToTimestamp( - instance.afterLastTakenDate), + 'beforeLastTakenDate': TimestampConverter.dateTimeToTimestamp(instance.beforeLastTakenDate), + 'afterLastTakenDate': NonNullTimestampConverter.dateTimeToTimestamp(instance.afterLastTakenDate), 'beforeLastTakenPillNumber': instance.beforeLastTakenPillNumber, 'afterLastTakenPillNumber': instance.afterLastTakenPillNumber, }; -_$TakenPillEditedValueImpl _$$TakenPillEditedValueImplFromJson( - Map json) => - _$TakenPillEditedValueImpl( - actualTakenDate: NonNullTimestampConverter.timestampToDateTime( - json['actualTakenDate'] as Timestamp), - historyRecordedDate: NonNullTimestampConverter.timestampToDateTime( - json['historyRecordedDate'] as Timestamp), - createdDate: NonNullTimestampConverter.timestampToDateTime( - json['createdDate'] as Timestamp), +_$TakenPillEditedValueImpl _$$TakenPillEditedValueImplFromJson(Map json) => _$TakenPillEditedValueImpl( + actualTakenDate: NonNullTimestampConverter.timestampToDateTime(json['actualTakenDate'] as Timestamp), + historyRecordedDate: NonNullTimestampConverter.timestampToDateTime(json['historyRecordedDate'] as Timestamp), + createdDate: NonNullTimestampConverter.timestampToDateTime(json['createdDate'] as Timestamp), ); -Map _$$TakenPillEditedValueImplToJson( - _$TakenPillEditedValueImpl instance) => - { - 'actualTakenDate': NonNullTimestampConverter.dateTimeToTimestamp( - instance.actualTakenDate), - 'historyRecordedDate': NonNullTimestampConverter.dateTimeToTimestamp( - instance.historyRecordedDate), - 'createdDate': - NonNullTimestampConverter.dateTimeToTimestamp(instance.createdDate), +Map _$$TakenPillEditedValueImplToJson(_$TakenPillEditedValueImpl instance) => { + 'actualTakenDate': NonNullTimestampConverter.dateTimeToTimestamp(instance.actualTakenDate), + 'historyRecordedDate': NonNullTimestampConverter.dateTimeToTimestamp(instance.historyRecordedDate), + 'createdDate': NonNullTimestampConverter.dateTimeToTimestamp(instance.createdDate), }; -_$RevertTakenPillValueImpl _$$RevertTakenPillValueImplFromJson( - Map json) => - _$RevertTakenPillValueImpl( - beforeLastTakenDate: TimestampConverter.timestampToDateTime( - json['beforeLastTakenDate'] as Timestamp?), - afterLastTakenDate: NonNullTimestampConverter.timestampToDateTime( - json['afterLastTakenDate'] as Timestamp), - beforeLastTakenPillNumber: - (json['beforeLastTakenPillNumber'] as num).toInt(), - afterLastTakenPillNumber: - (json['afterLastTakenPillNumber'] as num).toInt(), +_$RevertTakenPillValueImpl _$$RevertTakenPillValueImplFromJson(Map json) => _$RevertTakenPillValueImpl( + beforeLastTakenDate: TimestampConverter.timestampToDateTime(json['beforeLastTakenDate'] as Timestamp?), + afterLastTakenDate: NonNullTimestampConverter.timestampToDateTime(json['afterLastTakenDate'] as Timestamp), + beforeLastTakenPillNumber: (json['beforeLastTakenPillNumber'] as num).toInt(), + afterLastTakenPillNumber: (json['afterLastTakenPillNumber'] as num).toInt(), ); -Map _$$RevertTakenPillValueImplToJson( - _$RevertTakenPillValueImpl instance) => - { - 'beforeLastTakenDate': - TimestampConverter.dateTimeToTimestamp(instance.beforeLastTakenDate), - 'afterLastTakenDate': NonNullTimestampConverter.dateTimeToTimestamp( - instance.afterLastTakenDate), +Map _$$RevertTakenPillValueImplToJson(_$RevertTakenPillValueImpl instance) => { + 'beforeLastTakenDate': TimestampConverter.dateTimeToTimestamp(instance.beforeLastTakenDate), + 'afterLastTakenDate': NonNullTimestampConverter.dateTimeToTimestamp(instance.afterLastTakenDate), 'beforeLastTakenPillNumber': instance.beforeLastTakenPillNumber, 'afterLastTakenPillNumber': instance.afterLastTakenPillNumber, }; -_$ChangedPillNumberValueImpl _$$ChangedPillNumberValueImplFromJson( - Map json) => - _$ChangedPillNumberValueImpl( - beforeBeginingDate: NonNullTimestampConverter.timestampToDateTime( - json['beforeBeginingDate'] as Timestamp), - afterBeginingDate: NonNullTimestampConverter.timestampToDateTime( - json['afterBeginingDate'] as Timestamp), +_$ChangedPillNumberValueImpl _$$ChangedPillNumberValueImplFromJson(Map json) => _$ChangedPillNumberValueImpl( + beforeBeginingDate: NonNullTimestampConverter.timestampToDateTime(json['beforeBeginingDate'] as Timestamp), + afterBeginingDate: NonNullTimestampConverter.timestampToDateTime(json['afterBeginingDate'] as Timestamp), beforeTodayPillNumber: (json['beforeTodayPillNumber'] as num).toInt(), afterTodayPillNumber: (json['afterTodayPillNumber'] as num).toInt(), beforeGroupIndex: (json['beforeGroupIndex'] as num?)?.toInt() ?? 1, afterGroupIndex: (json['afterGroupIndex'] as num?)?.toInt() ?? 1, ); -Map _$$ChangedPillNumberValueImplToJson( - _$ChangedPillNumberValueImpl instance) => - { - 'beforeBeginingDate': NonNullTimestampConverter.dateTimeToTimestamp( - instance.beforeBeginingDate), - 'afterBeginingDate': NonNullTimestampConverter.dateTimeToTimestamp( - instance.afterBeginingDate), +Map _$$ChangedPillNumberValueImplToJson(_$ChangedPillNumberValueImpl instance) => { + 'beforeBeginingDate': NonNullTimestampConverter.dateTimeToTimestamp(instance.beforeBeginingDate), + 'afterBeginingDate': NonNullTimestampConverter.dateTimeToTimestamp(instance.afterBeginingDate), 'beforeTodayPillNumber': instance.beforeTodayPillNumber, 'afterTodayPillNumber': instance.afterTodayPillNumber, 'beforeGroupIndex': instance.beforeGroupIndex, 'afterGroupIndex': instance.afterGroupIndex, }; -_$EndedPillSheetValueImpl _$$EndedPillSheetValueImplFromJson( - Map json) => - _$EndedPillSheetValueImpl( - endRecordDate: NonNullTimestampConverter.timestampToDateTime( - json['endRecordDate'] as Timestamp), - lastTakenDate: NonNullTimestampConverter.timestampToDateTime( - json['lastTakenDate'] as Timestamp), +_$EndedPillSheetValueImpl _$$EndedPillSheetValueImplFromJson(Map json) => _$EndedPillSheetValueImpl( + endRecordDate: NonNullTimestampConverter.timestampToDateTime(json['endRecordDate'] as Timestamp), + lastTakenDate: NonNullTimestampConverter.timestampToDateTime(json['lastTakenDate'] as Timestamp), ); -Map _$$EndedPillSheetValueImplToJson( - _$EndedPillSheetValueImpl instance) => - { - 'endRecordDate': - NonNullTimestampConverter.dateTimeToTimestamp(instance.endRecordDate), - 'lastTakenDate': - NonNullTimestampConverter.dateTimeToTimestamp(instance.lastTakenDate), +Map _$$EndedPillSheetValueImplToJson(_$EndedPillSheetValueImpl instance) => { + 'endRecordDate': NonNullTimestampConverter.dateTimeToTimestamp(instance.endRecordDate), + 'lastTakenDate': NonNullTimestampConverter.dateTimeToTimestamp(instance.lastTakenDate), }; -_$BeganRestDurationValueImpl _$$BeganRestDurationValueImplFromJson( - Map json) => - _$BeganRestDurationValueImpl( - restDuration: - RestDuration.fromJson(json['restDuration'] as Map), +_$BeganRestDurationValueImpl _$$BeganRestDurationValueImplFromJson(Map json) => _$BeganRestDurationValueImpl( + restDuration: RestDuration.fromJson(json['restDuration'] as Map), ); -Map _$$BeganRestDurationValueImplToJson( - _$BeganRestDurationValueImpl instance) => - { +Map _$$BeganRestDurationValueImplToJson(_$BeganRestDurationValueImpl instance) => { 'restDuration': instance.restDuration.toJson(), }; -_$EndedRestDurationValueImpl _$$EndedRestDurationValueImplFromJson( - Map json) => - _$EndedRestDurationValueImpl( - restDuration: - RestDuration.fromJson(json['restDuration'] as Map), +_$EndedRestDurationValueImpl _$$EndedRestDurationValueImplFromJson(Map json) => _$EndedRestDurationValueImpl( + restDuration: RestDuration.fromJson(json['restDuration'] as Map), ); -Map _$$EndedRestDurationValueImplToJson( - _$EndedRestDurationValueImpl instance) => - { +Map _$$EndedRestDurationValueImplToJson(_$EndedRestDurationValueImpl instance) => { 'restDuration': instance.restDuration.toJson(), }; -_$ChangedRestDurationBeginDateValueImpl - _$$ChangedRestDurationBeginDateValueImplFromJson( - Map json) => - _$ChangedRestDurationBeginDateValueImpl( - beforeRestDuration: RestDuration.fromJson( - json['beforeRestDuration'] as Map), - afterRestDuration: RestDuration.fromJson( - json['afterRestDuration'] as Map), - ); - -Map _$$ChangedRestDurationBeginDateValueImplToJson( - _$ChangedRestDurationBeginDateValueImpl instance) => - { +_$ChangedRestDurationBeginDateValueImpl _$$ChangedRestDurationBeginDateValueImplFromJson(Map json) => + _$ChangedRestDurationBeginDateValueImpl( + beforeRestDuration: RestDuration.fromJson(json['beforeRestDuration'] as Map), + afterRestDuration: RestDuration.fromJson(json['afterRestDuration'] as Map), + ); + +Map _$$ChangedRestDurationBeginDateValueImplToJson(_$ChangedRestDurationBeginDateValueImpl instance) => { 'beforeRestDuration': instance.beforeRestDuration.toJson(), 'afterRestDuration': instance.afterRestDuration.toJson(), }; -_$ChangedRestDurationValueImpl _$$ChangedRestDurationValueImplFromJson( - Map json) => - _$ChangedRestDurationValueImpl( - beforeRestDuration: RestDuration.fromJson( - json['beforeRestDuration'] as Map), - afterRestDuration: RestDuration.fromJson( - json['afterRestDuration'] as Map), +_$ChangedRestDurationValueImpl _$$ChangedRestDurationValueImplFromJson(Map json) => _$ChangedRestDurationValueImpl( + beforeRestDuration: RestDuration.fromJson(json['beforeRestDuration'] as Map), + afterRestDuration: RestDuration.fromJson(json['afterRestDuration'] as Map), ); -Map _$$ChangedRestDurationValueImplToJson( - _$ChangedRestDurationValueImpl instance) => - { +Map _$$ChangedRestDurationValueImplToJson(_$ChangedRestDurationValueImpl instance) => { 'beforeRestDuration': instance.beforeRestDuration.toJson(), 'afterRestDuration': instance.afterRestDuration.toJson(), }; -_$ChangedBeginDisplayNumberValueImpl - _$$ChangedBeginDisplayNumberValueImplFromJson(Map json) => - _$ChangedBeginDisplayNumberValueImpl( - beforeDisplayNumberSetting: json['beforeDisplayNumberSetting'] == null - ? null - : PillSheetGroupDisplayNumberSetting.fromJson( - json['beforeDisplayNumberSetting'] as Map), - afterDisplayNumberSetting: - PillSheetGroupDisplayNumberSetting.fromJson( - json['afterDisplayNumberSetting'] as Map), - ); - -Map _$$ChangedBeginDisplayNumberValueImplToJson( - _$ChangedBeginDisplayNumberValueImpl instance) => - { - 'beforeDisplayNumberSetting': - instance.beforeDisplayNumberSetting?.toJson(), +_$ChangedBeginDisplayNumberValueImpl _$$ChangedBeginDisplayNumberValueImplFromJson(Map json) => _$ChangedBeginDisplayNumberValueImpl( + beforeDisplayNumberSetting: json['beforeDisplayNumberSetting'] == null + ? null + : PillSheetGroupDisplayNumberSetting.fromJson(json['beforeDisplayNumberSetting'] as Map), + afterDisplayNumberSetting: PillSheetGroupDisplayNumberSetting.fromJson(json['afterDisplayNumberSetting'] as Map), + ); + +Map _$$ChangedBeginDisplayNumberValueImplToJson(_$ChangedBeginDisplayNumberValueImpl instance) => { + 'beforeDisplayNumberSetting': instance.beforeDisplayNumberSetting?.toJson(), 'afterDisplayNumberSetting': instance.afterDisplayNumberSetting.toJson(), }; -_$ChangedEndDisplayNumberValueImpl _$$ChangedEndDisplayNumberValueImplFromJson( - Map json) => - _$ChangedEndDisplayNumberValueImpl( +_$ChangedEndDisplayNumberValueImpl _$$ChangedEndDisplayNumberValueImplFromJson(Map json) => _$ChangedEndDisplayNumberValueImpl( beforeDisplayNumberSetting: json['beforeDisplayNumberSetting'] == null ? null - : PillSheetGroupDisplayNumberSetting.fromJson( - json['beforeDisplayNumberSetting'] as Map), - afterDisplayNumberSetting: PillSheetGroupDisplayNumberSetting.fromJson( - json['afterDisplayNumberSetting'] as Map), + : PillSheetGroupDisplayNumberSetting.fromJson(json['beforeDisplayNumberSetting'] as Map), + afterDisplayNumberSetting: PillSheetGroupDisplayNumberSetting.fromJson(json['afterDisplayNumberSetting'] as Map), ); -Map _$$ChangedEndDisplayNumberValueImplToJson( - _$ChangedEndDisplayNumberValueImpl instance) => - { - 'beforeDisplayNumberSetting': - instance.beforeDisplayNumberSetting?.toJson(), +Map _$$ChangedEndDisplayNumberValueImplToJson(_$ChangedEndDisplayNumberValueImpl instance) => { + 'beforeDisplayNumberSetting': instance.beforeDisplayNumberSetting?.toJson(), 'afterDisplayNumberSetting': instance.afterDisplayNumberSetting.toJson(), }; diff --git a/lib/entity/pilll_ads.codegen.freezed.dart b/lib/entity/pilll_ads.codegen.freezed.dart index 1a9fb9e970..693cbe44e0 100644 --- a/lib/entity/pilll_ads.codegen.freezed.dart +++ b/lib/entity/pilll_ads.codegen.freezed.dart @@ -20,13 +20,9 @@ PilllAds _$PilllAdsFromJson(Map json) { /// @nodoc mixin _$PilllAds { - @JsonKey( - fromJson: NonNullTimestampConverter.timestampToDateTime, - toJson: NonNullTimestampConverter.dateTimeToTimestamp) + @JsonKey(fromJson: NonNullTimestampConverter.timestampToDateTime, toJson: NonNullTimestampConverter.dateTimeToTimestamp) DateTime get startDateTime => throw _privateConstructorUsedError; - @JsonKey( - fromJson: NonNullTimestampConverter.timestampToDateTime, - toJson: NonNullTimestampConverter.dateTimeToTimestamp) + @JsonKey(fromJson: NonNullTimestampConverter.timestampToDateTime, toJson: NonNullTimestampConverter.dateTimeToTimestamp) DateTime get endDateTime => throw _privateConstructorUsedError; String get description => throw _privateConstructorUsedError; String? get imageURL => throw _privateConstructorUsedError; @@ -37,24 +33,17 @@ mixin _$PilllAds { Map toJson() => throw _privateConstructorUsedError; @JsonKey(ignore: true) - $PilllAdsCopyWith get copyWith => - throw _privateConstructorUsedError; + $PilllAdsCopyWith get copyWith => throw _privateConstructorUsedError; } /// @nodoc abstract class $PilllAdsCopyWith<$Res> { - factory $PilllAdsCopyWith(PilllAds value, $Res Function(PilllAds) then) = - _$PilllAdsCopyWithImpl<$Res, PilllAds>; + factory $PilllAdsCopyWith(PilllAds value, $Res Function(PilllAds) then) = _$PilllAdsCopyWithImpl<$Res, PilllAds>; @useResult $Res call( - {@JsonKey( - fromJson: NonNullTimestampConverter.timestampToDateTime, - toJson: NonNullTimestampConverter.dateTimeToTimestamp) + {@JsonKey(fromJson: NonNullTimestampConverter.timestampToDateTime, toJson: NonNullTimestampConverter.dateTimeToTimestamp) DateTime startDateTime, - @JsonKey( - fromJson: NonNullTimestampConverter.timestampToDateTime, - toJson: NonNullTimestampConverter.dateTimeToTimestamp) - DateTime endDateTime, + @JsonKey(fromJson: NonNullTimestampConverter.timestampToDateTime, toJson: NonNullTimestampConverter.dateTimeToTimestamp) DateTime endDateTime, String description, String? imageURL, String destinationURL, @@ -64,8 +53,7 @@ abstract class $PilllAdsCopyWith<$Res> { } /// @nodoc -class _$PilllAdsCopyWithImpl<$Res, $Val extends PilllAds> - implements $PilllAdsCopyWith<$Res> { +class _$PilllAdsCopyWithImpl<$Res, $Val extends PilllAds> implements $PilllAdsCopyWith<$Res> { _$PilllAdsCopyWithImpl(this._value, this._then); // ignore: unused_field @@ -123,22 +111,14 @@ class _$PilllAdsCopyWithImpl<$Res, $Val extends PilllAds> } /// @nodoc -abstract class _$$PilllAdsImplCopyWith<$Res> - implements $PilllAdsCopyWith<$Res> { - factory _$$PilllAdsImplCopyWith( - _$PilllAdsImpl value, $Res Function(_$PilllAdsImpl) then) = - __$$PilllAdsImplCopyWithImpl<$Res>; +abstract class _$$PilllAdsImplCopyWith<$Res> implements $PilllAdsCopyWith<$Res> { + factory _$$PilllAdsImplCopyWith(_$PilllAdsImpl value, $Res Function(_$PilllAdsImpl) then) = __$$PilllAdsImplCopyWithImpl<$Res>; @override @useResult $Res call( - {@JsonKey( - fromJson: NonNullTimestampConverter.timestampToDateTime, - toJson: NonNullTimestampConverter.dateTimeToTimestamp) + {@JsonKey(fromJson: NonNullTimestampConverter.timestampToDateTime, toJson: NonNullTimestampConverter.dateTimeToTimestamp) DateTime startDateTime, - @JsonKey( - fromJson: NonNullTimestampConverter.timestampToDateTime, - toJson: NonNullTimestampConverter.dateTimeToTimestamp) - DateTime endDateTime, + @JsonKey(fromJson: NonNullTimestampConverter.timestampToDateTime, toJson: NonNullTimestampConverter.dateTimeToTimestamp) DateTime endDateTime, String description, String? imageURL, String destinationURL, @@ -148,12 +128,8 @@ abstract class _$$PilllAdsImplCopyWith<$Res> } /// @nodoc -class __$$PilllAdsImplCopyWithImpl<$Res> - extends _$PilllAdsCopyWithImpl<$Res, _$PilllAdsImpl> - implements _$$PilllAdsImplCopyWith<$Res> { - __$$PilllAdsImplCopyWithImpl( - _$PilllAdsImpl _value, $Res Function(_$PilllAdsImpl) _then) - : super(_value, _then); +class __$$PilllAdsImplCopyWithImpl<$Res> extends _$PilllAdsCopyWithImpl<$Res, _$PilllAdsImpl> implements _$$PilllAdsImplCopyWith<$Res> { + __$$PilllAdsImplCopyWithImpl(_$PilllAdsImpl _value, $Res Function(_$PilllAdsImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @override @@ -209,13 +185,9 @@ class __$$PilllAdsImplCopyWithImpl<$Res> @JsonSerializable(explicitToJson: true) class _$PilllAdsImpl extends _PilllAds { _$PilllAdsImpl( - {@JsonKey( - fromJson: NonNullTimestampConverter.timestampToDateTime, - toJson: NonNullTimestampConverter.dateTimeToTimestamp) + {@JsonKey(fromJson: NonNullTimestampConverter.timestampToDateTime, toJson: NonNullTimestampConverter.dateTimeToTimestamp) required this.startDateTime, - @JsonKey( - fromJson: NonNullTimestampConverter.timestampToDateTime, - toJson: NonNullTimestampConverter.dateTimeToTimestamp) + @JsonKey(fromJson: NonNullTimestampConverter.timestampToDateTime, toJson: NonNullTimestampConverter.dateTimeToTimestamp) required this.endDateTime, required this.description, required this.imageURL, @@ -225,18 +197,13 @@ class _$PilllAdsImpl extends _PilllAds { this.chevronRightColor = "FFFFFF"}) : super._(); - factory _$PilllAdsImpl.fromJson(Map json) => - _$$PilllAdsImplFromJson(json); + factory _$PilllAdsImpl.fromJson(Map json) => _$$PilllAdsImplFromJson(json); @override - @JsonKey( - fromJson: NonNullTimestampConverter.timestampToDateTime, - toJson: NonNullTimestampConverter.dateTimeToTimestamp) + @JsonKey(fromJson: NonNullTimestampConverter.timestampToDateTime, toJson: NonNullTimestampConverter.dateTimeToTimestamp) final DateTime startDateTime; @override - @JsonKey( - fromJson: NonNullTimestampConverter.timestampToDateTime, - toJson: NonNullTimestampConverter.dateTimeToTimestamp) + @JsonKey(fromJson: NonNullTimestampConverter.timestampToDateTime, toJson: NonNullTimestampConverter.dateTimeToTimestamp) final DateTime endDateTime; @override final String description; @@ -263,42 +230,25 @@ class _$PilllAdsImpl extends _PilllAds { return identical(this, other) || (other.runtimeType == runtimeType && other is _$PilllAdsImpl && - (identical(other.startDateTime, startDateTime) || - other.startDateTime == startDateTime) && - (identical(other.endDateTime, endDateTime) || - other.endDateTime == endDateTime) && - (identical(other.description, description) || - other.description == description) && - (identical(other.imageURL, imageURL) || - other.imageURL == imageURL) && - (identical(other.destinationURL, destinationURL) || - other.destinationURL == destinationURL) && - (identical(other.hexColor, hexColor) || - other.hexColor == hexColor) && - (identical(other.closeButtonColor, closeButtonColor) || - other.closeButtonColor == closeButtonColor) && - (identical(other.chevronRightColor, chevronRightColor) || - other.chevronRightColor == chevronRightColor)); + (identical(other.startDateTime, startDateTime) || other.startDateTime == startDateTime) && + (identical(other.endDateTime, endDateTime) || other.endDateTime == endDateTime) && + (identical(other.description, description) || other.description == description) && + (identical(other.imageURL, imageURL) || other.imageURL == imageURL) && + (identical(other.destinationURL, destinationURL) || other.destinationURL == destinationURL) && + (identical(other.hexColor, hexColor) || other.hexColor == hexColor) && + (identical(other.closeButtonColor, closeButtonColor) || other.closeButtonColor == closeButtonColor) && + (identical(other.chevronRightColor, chevronRightColor) || other.chevronRightColor == chevronRightColor)); } @JsonKey(ignore: true) @override - int get hashCode => Object.hash( - runtimeType, - startDateTime, - endDateTime, - description, - imageURL, - destinationURL, - hexColor, - closeButtonColor, - chevronRightColor); + int get hashCode => + Object.hash(runtimeType, startDateTime, endDateTime, description, imageURL, destinationURL, hexColor, closeButtonColor, chevronRightColor); @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$PilllAdsImplCopyWith<_$PilllAdsImpl> get copyWith => - __$$PilllAdsImplCopyWithImpl<_$PilllAdsImpl>(this, _$identity); + _$$PilllAdsImplCopyWith<_$PilllAdsImpl> get copyWith => __$$PilllAdsImplCopyWithImpl<_$PilllAdsImpl>(this, _$identity); @override Map toJson() { @@ -310,13 +260,9 @@ class _$PilllAdsImpl extends _PilllAds { abstract class _PilllAds extends PilllAds { factory _PilllAds( - {@JsonKey( - fromJson: NonNullTimestampConverter.timestampToDateTime, - toJson: NonNullTimestampConverter.dateTimeToTimestamp) + {@JsonKey(fromJson: NonNullTimestampConverter.timestampToDateTime, toJson: NonNullTimestampConverter.dateTimeToTimestamp) required final DateTime startDateTime, - @JsonKey( - fromJson: NonNullTimestampConverter.timestampToDateTime, - toJson: NonNullTimestampConverter.dateTimeToTimestamp) + @JsonKey(fromJson: NonNullTimestampConverter.timestampToDateTime, toJson: NonNullTimestampConverter.dateTimeToTimestamp) required final DateTime endDateTime, required final String description, required final String? imageURL, @@ -326,18 +272,13 @@ abstract class _PilllAds extends PilllAds { final String chevronRightColor}) = _$PilllAdsImpl; _PilllAds._() : super._(); - factory _PilllAds.fromJson(Map json) = - _$PilllAdsImpl.fromJson; + factory _PilllAds.fromJson(Map json) = _$PilllAdsImpl.fromJson; @override - @JsonKey( - fromJson: NonNullTimestampConverter.timestampToDateTime, - toJson: NonNullTimestampConverter.dateTimeToTimestamp) + @JsonKey(fromJson: NonNullTimestampConverter.timestampToDateTime, toJson: NonNullTimestampConverter.dateTimeToTimestamp) DateTime get startDateTime; @override - @JsonKey( - fromJson: NonNullTimestampConverter.timestampToDateTime, - toJson: NonNullTimestampConverter.dateTimeToTimestamp) + @JsonKey(fromJson: NonNullTimestampConverter.timestampToDateTime, toJson: NonNullTimestampConverter.dateTimeToTimestamp) DateTime get endDateTime; @override String get description; @@ -353,6 +294,5 @@ abstract class _PilllAds extends PilllAds { String get chevronRightColor; @override @JsonKey(ignore: true) - _$$PilllAdsImplCopyWith<_$PilllAdsImpl> get copyWith => - throw _privateConstructorUsedError; + _$$PilllAdsImplCopyWith<_$PilllAdsImpl> get copyWith => throw _privateConstructorUsedError; } diff --git a/lib/entity/pilll_ads.codegen.g.dart b/lib/entity/pilll_ads.codegen.g.dart index 7db63b8e5f..3a20308730 100644 --- a/lib/entity/pilll_ads.codegen.g.dart +++ b/lib/entity/pilll_ads.codegen.g.dart @@ -6,12 +6,9 @@ part of 'pilll_ads.codegen.dart'; // JsonSerializableGenerator // ************************************************************************** -_$PilllAdsImpl _$$PilllAdsImplFromJson(Map json) => - _$PilllAdsImpl( - startDateTime: NonNullTimestampConverter.timestampToDateTime( - json['startDateTime'] as Timestamp), - endDateTime: NonNullTimestampConverter.timestampToDateTime( - json['endDateTime'] as Timestamp), +_$PilllAdsImpl _$$PilllAdsImplFromJson(Map json) => _$PilllAdsImpl( + startDateTime: NonNullTimestampConverter.timestampToDateTime(json['startDateTime'] as Timestamp), + endDateTime: NonNullTimestampConverter.timestampToDateTime(json['endDateTime'] as Timestamp), description: json['description'] as String, imageURL: json['imageURL'] as String?, destinationURL: json['destinationURL'] as String, @@ -20,12 +17,9 @@ _$PilllAdsImpl _$$PilllAdsImplFromJson(Map json) => chevronRightColor: json['chevronRightColor'] as String? ?? "FFFFFF", ); -Map _$$PilllAdsImplToJson(_$PilllAdsImpl instance) => - { - 'startDateTime': - NonNullTimestampConverter.dateTimeToTimestamp(instance.startDateTime), - 'endDateTime': - NonNullTimestampConverter.dateTimeToTimestamp(instance.endDateTime), +Map _$$PilllAdsImplToJson(_$PilllAdsImpl instance) => { + 'startDateTime': NonNullTimestampConverter.dateTimeToTimestamp(instance.startDateTime), + 'endDateTime': NonNullTimestampConverter.dateTimeToTimestamp(instance.endDateTime), 'description': instance.description, 'imageURL': instance.imageURL, 'destinationURL': instance.destinationURL, diff --git a/lib/entity/reminder_notification_customization.codegen.freezed.dart b/lib/entity/reminder_notification_customization.codegen.freezed.dart index 240e37223f..9c56d0f8a2 100644 --- a/lib/entity/reminder_notification_customization.codegen.freezed.dart +++ b/lib/entity/reminder_notification_customization.codegen.freezed.dart @@ -14,8 +14,7 @@ T _$identity(T value) => value; final _privateConstructorUsedError = UnsupportedError( 'It seems like you constructed your class using `MyClass._()`. This constructor is only meant to be used by freezed and you are not supposed to need it nor use it.\nPlease check the documentation here for more information: https://github.com/rrousselGit/freezed#adding-getters-and-methods-to-our-models'); -ReminderNotificationCustomization _$ReminderNotificationCustomizationFromJson( - Map json) { +ReminderNotificationCustomization _$ReminderNotificationCustomizationFromJson(Map json) { return _ReminderNotificationCustomization.fromJson(json); } @@ -25,24 +24,19 @@ mixin _$ReminderNotificationCustomization { String get word => throw _privateConstructorUsedError; bool get isInVisibleReminderDate => throw _privateConstructorUsedError; bool get isInVisiblePillNumber => throw _privateConstructorUsedError; - bool get isInVisibleDescription => - throw _privateConstructorUsedError; // BEGIN: From v2 + bool get isInVisibleDescription => throw _privateConstructorUsedError; // BEGIN: From v2 String get dailyTakenMessage => throw _privateConstructorUsedError; String get missedTakenMessage => throw _privateConstructorUsedError; Map toJson() => throw _privateConstructorUsedError; @JsonKey(ignore: true) - $ReminderNotificationCustomizationCopyWith - get copyWith => throw _privateConstructorUsedError; + $ReminderNotificationCustomizationCopyWith get copyWith => throw _privateConstructorUsedError; } /// @nodoc abstract class $ReminderNotificationCustomizationCopyWith<$Res> { - factory $ReminderNotificationCustomizationCopyWith( - ReminderNotificationCustomization value, - $Res Function(ReminderNotificationCustomization) then) = - _$ReminderNotificationCustomizationCopyWithImpl<$Res, - ReminderNotificationCustomization>; + factory $ReminderNotificationCustomizationCopyWith(ReminderNotificationCustomization value, $Res Function(ReminderNotificationCustomization) then) = + _$ReminderNotificationCustomizationCopyWithImpl<$Res, ReminderNotificationCustomization>; @useResult $Res call( {String version, @@ -55,8 +49,7 @@ abstract class $ReminderNotificationCustomizationCopyWith<$Res> { } /// @nodoc -class _$ReminderNotificationCustomizationCopyWithImpl<$Res, - $Val extends ReminderNotificationCustomization> +class _$ReminderNotificationCustomizationCopyWithImpl<$Res, $Val extends ReminderNotificationCustomization> implements $ReminderNotificationCustomizationCopyWith<$Res> { _$ReminderNotificationCustomizationCopyWithImpl(this._value, this._then); @@ -110,11 +103,9 @@ class _$ReminderNotificationCustomizationCopyWithImpl<$Res, } /// @nodoc -abstract class _$$ReminderNotificationCustomizationImplCopyWith<$Res> - implements $ReminderNotificationCustomizationCopyWith<$Res> { +abstract class _$$ReminderNotificationCustomizationImplCopyWith<$Res> implements $ReminderNotificationCustomizationCopyWith<$Res> { factory _$$ReminderNotificationCustomizationImplCopyWith( - _$ReminderNotificationCustomizationImpl value, - $Res Function(_$ReminderNotificationCustomizationImpl) then) = + _$ReminderNotificationCustomizationImpl value, $Res Function(_$ReminderNotificationCustomizationImpl) then) = __$$ReminderNotificationCustomizationImplCopyWithImpl<$Res>; @override @useResult @@ -130,12 +121,10 @@ abstract class _$$ReminderNotificationCustomizationImplCopyWith<$Res> /// @nodoc class __$$ReminderNotificationCustomizationImplCopyWithImpl<$Res> - extends _$ReminderNotificationCustomizationCopyWithImpl<$Res, - _$ReminderNotificationCustomizationImpl> + extends _$ReminderNotificationCustomizationCopyWithImpl<$Res, _$ReminderNotificationCustomizationImpl> implements _$$ReminderNotificationCustomizationImplCopyWith<$Res> { __$$ReminderNotificationCustomizationImplCopyWithImpl( - _$ReminderNotificationCustomizationImpl _value, - $Res Function(_$ReminderNotificationCustomizationImpl) _then) + _$ReminderNotificationCustomizationImpl _value, $Res Function(_$ReminderNotificationCustomizationImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -185,8 +174,7 @@ class __$$ReminderNotificationCustomizationImplCopyWithImpl<$Res> /// @nodoc @JsonSerializable(explicitToJson: true) -class _$ReminderNotificationCustomizationImpl - extends _ReminderNotificationCustomization { +class _$ReminderNotificationCustomizationImpl extends _ReminderNotificationCustomization { const _$ReminderNotificationCustomizationImpl( {this.version = "v2", this.word = pillEmoji, @@ -194,13 +182,10 @@ class _$ReminderNotificationCustomizationImpl this.isInVisiblePillNumber = false, this.isInVisibleDescription = false, this.dailyTakenMessage = "", - this.missedTakenMessage = - "飲み忘れていませんか?\n服用記録がない日が複数あります$thinkingFaceEmoji"}) + this.missedTakenMessage = "飲み忘れていませんか?\n服用記録がない日が複数あります$thinkingFaceEmoji"}) : super._(); - factory _$ReminderNotificationCustomizationImpl.fromJson( - Map json) => - _$$ReminderNotificationCustomizationImplFromJson(json); + factory _$ReminderNotificationCustomizationImpl.fromJson(Map json) => _$$ReminderNotificationCustomizationImplFromJson(json); @override @JsonKey() @@ -237,38 +222,23 @@ class _$ReminderNotificationCustomizationImpl other is _$ReminderNotificationCustomizationImpl && (identical(other.version, version) || other.version == version) && (identical(other.word, word) || other.word == word) && - (identical( - other.isInVisibleReminderDate, isInVisibleReminderDate) || - other.isInVisibleReminderDate == isInVisibleReminderDate) && - (identical(other.isInVisiblePillNumber, isInVisiblePillNumber) || - other.isInVisiblePillNumber == isInVisiblePillNumber) && - (identical(other.isInVisibleDescription, isInVisibleDescription) || - other.isInVisibleDescription == isInVisibleDescription) && - (identical(other.dailyTakenMessage, dailyTakenMessage) || - other.dailyTakenMessage == dailyTakenMessage) && - (identical(other.missedTakenMessage, missedTakenMessage) || - other.missedTakenMessage == missedTakenMessage)); + (identical(other.isInVisibleReminderDate, isInVisibleReminderDate) || other.isInVisibleReminderDate == isInVisibleReminderDate) && + (identical(other.isInVisiblePillNumber, isInVisiblePillNumber) || other.isInVisiblePillNumber == isInVisiblePillNumber) && + (identical(other.isInVisibleDescription, isInVisibleDescription) || other.isInVisibleDescription == isInVisibleDescription) && + (identical(other.dailyTakenMessage, dailyTakenMessage) || other.dailyTakenMessage == dailyTakenMessage) && + (identical(other.missedTakenMessage, missedTakenMessage) || other.missedTakenMessage == missedTakenMessage)); } @JsonKey(ignore: true) @override int get hashCode => Object.hash( - runtimeType, - version, - word, - isInVisibleReminderDate, - isInVisiblePillNumber, - isInVisibleDescription, - dailyTakenMessage, - missedTakenMessage); + runtimeType, version, word, isInVisibleReminderDate, isInVisiblePillNumber, isInVisibleDescription, dailyTakenMessage, missedTakenMessage); @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$ReminderNotificationCustomizationImplCopyWith< - _$ReminderNotificationCustomizationImpl> - get copyWith => __$$ReminderNotificationCustomizationImplCopyWithImpl< - _$ReminderNotificationCustomizationImpl>(this, _$identity); + _$$ReminderNotificationCustomizationImplCopyWith<_$ReminderNotificationCustomizationImpl> get copyWith => + __$$ReminderNotificationCustomizationImplCopyWithImpl<_$ReminderNotificationCustomizationImpl>(this, _$identity); @override Map toJson() { @@ -278,22 +248,18 @@ class _$ReminderNotificationCustomizationImpl } } -abstract class _ReminderNotificationCustomization - extends ReminderNotificationCustomization { +abstract class _ReminderNotificationCustomization extends ReminderNotificationCustomization { const factory _ReminderNotificationCustomization( - {final String version, - final String word, - final bool isInVisibleReminderDate, - final bool isInVisiblePillNumber, - final bool isInVisibleDescription, - final String dailyTakenMessage, - final String missedTakenMessage}) = - _$ReminderNotificationCustomizationImpl; + {final String version, + final String word, + final bool isInVisibleReminderDate, + final bool isInVisiblePillNumber, + final bool isInVisibleDescription, + final String dailyTakenMessage, + final String missedTakenMessage}) = _$ReminderNotificationCustomizationImpl; const _ReminderNotificationCustomization._() : super._(); - factory _ReminderNotificationCustomization.fromJson( - Map json) = - _$ReminderNotificationCustomizationImpl.fromJson; + factory _ReminderNotificationCustomization.fromJson(Map json) = _$ReminderNotificationCustomizationImpl.fromJson; @override String get version; @@ -311,7 +277,5 @@ abstract class _ReminderNotificationCustomization String get missedTakenMessage; @override @JsonKey(ignore: true) - _$$ReminderNotificationCustomizationImplCopyWith< - _$ReminderNotificationCustomizationImpl> - get copyWith => throw _privateConstructorUsedError; + _$$ReminderNotificationCustomizationImplCopyWith<_$ReminderNotificationCustomizationImpl> get copyWith => throw _privateConstructorUsedError; } diff --git a/lib/entity/reminder_notification_customization.codegen.g.dart b/lib/entity/reminder_notification_customization.codegen.g.dart index c5b4437efd..5ab7da371b 100644 --- a/lib/entity/reminder_notification_customization.codegen.g.dart +++ b/lib/entity/reminder_notification_customization.codegen.g.dart @@ -6,26 +6,18 @@ part of 'reminder_notification_customization.codegen.dart'; // JsonSerializableGenerator // ************************************************************************** -_$ReminderNotificationCustomizationImpl - _$$ReminderNotificationCustomizationImplFromJson( - Map json) => - _$ReminderNotificationCustomizationImpl( - version: json['version'] as String? ?? "v2", - word: json['word'] as String? ?? pillEmoji, - isInVisibleReminderDate: - json['isInVisibleReminderDate'] as bool? ?? false, - isInVisiblePillNumber: - json['isInVisiblePillNumber'] as bool? ?? false, - isInVisibleDescription: - json['isInVisibleDescription'] as bool? ?? false, - dailyTakenMessage: json['dailyTakenMessage'] as String? ?? "", - missedTakenMessage: json['missedTakenMessage'] as String? ?? - "飲み忘れていませんか?\n服用記録がない日が複数あります$thinkingFaceEmoji", - ); +_$ReminderNotificationCustomizationImpl _$$ReminderNotificationCustomizationImplFromJson(Map json) => + _$ReminderNotificationCustomizationImpl( + version: json['version'] as String? ?? "v2", + word: json['word'] as String? ?? pillEmoji, + isInVisibleReminderDate: json['isInVisibleReminderDate'] as bool? ?? false, + isInVisiblePillNumber: json['isInVisiblePillNumber'] as bool? ?? false, + isInVisibleDescription: json['isInVisibleDescription'] as bool? ?? false, + dailyTakenMessage: json['dailyTakenMessage'] as String? ?? "", + missedTakenMessage: json['missedTakenMessage'] as String? ?? "飲み忘れていませんか?\n服用記録がない日が複数あります$thinkingFaceEmoji", + ); -Map _$$ReminderNotificationCustomizationImplToJson( - _$ReminderNotificationCustomizationImpl instance) => - { +Map _$$ReminderNotificationCustomizationImplToJson(_$ReminderNotificationCustomizationImpl instance) => { 'version': instance.version, 'word': instance.word, 'isInVisibleReminderDate': instance.isInVisibleReminderDate, diff --git a/lib/entity/remote_config_parameter.codegen.freezed.dart b/lib/entity/remote_config_parameter.codegen.freezed.dart index 0a6cbbf784..468b3165f1 100644 --- a/lib/entity/remote_config_parameter.codegen.freezed.dart +++ b/lib/entity/remote_config_parameter.codegen.freezed.dart @@ -14,8 +14,7 @@ T _$identity(T value) => value; final _privateConstructorUsedError = UnsupportedError( 'It seems like you constructed your class using `MyClass._()`. This constructor is only meant to be used by freezed and you are not supposed to need it nor use it.\nPlease check the documentation here for more information: https://github.com/rrousselGit/freezed#adding-getters-and-methods-to-our-models'); -RemoteConfigParameter _$RemoteConfigParameterFromJson( - Map json) { +RemoteConfigParameter _$RemoteConfigParameterFromJson(Map json) { return _RemoteConfigParameter.fromJson(json); } @@ -30,14 +29,12 @@ mixin _$RemoteConfigParameter { Map toJson() => throw _privateConstructorUsedError; @JsonKey(ignore: true) - $RemoteConfigParameterCopyWith get copyWith => - throw _privateConstructorUsedError; + $RemoteConfigParameterCopyWith get copyWith => throw _privateConstructorUsedError; } /// @nodoc abstract class $RemoteConfigParameterCopyWith<$Res> { - factory $RemoteConfigParameterCopyWith(RemoteConfigParameter value, - $Res Function(RemoteConfigParameter) then) = + factory $RemoteConfigParameterCopyWith(RemoteConfigParameter value, $Res Function(RemoteConfigParameter) then) = _$RemoteConfigParameterCopyWithImpl<$Res, RemoteConfigParameter>; @useResult $Res call( @@ -50,9 +47,7 @@ abstract class $RemoteConfigParameterCopyWith<$Res> { } /// @nodoc -class _$RemoteConfigParameterCopyWithImpl<$Res, - $Val extends RemoteConfigParameter> - implements $RemoteConfigParameterCopyWith<$Res> { +class _$RemoteConfigParameterCopyWithImpl<$Res, $Val extends RemoteConfigParameter> implements $RemoteConfigParameterCopyWith<$Res> { _$RemoteConfigParameterCopyWithImpl(this._value, this._then); // ignore: unused_field @@ -100,11 +95,8 @@ class _$RemoteConfigParameterCopyWithImpl<$Res, } /// @nodoc -abstract class _$$RemoteConfigParameterImplCopyWith<$Res> - implements $RemoteConfigParameterCopyWith<$Res> { - factory _$$RemoteConfigParameterImplCopyWith( - _$RemoteConfigParameterImpl value, - $Res Function(_$RemoteConfigParameterImpl) then) = +abstract class _$$RemoteConfigParameterImplCopyWith<$Res> implements $RemoteConfigParameterCopyWith<$Res> { + factory _$$RemoteConfigParameterImplCopyWith(_$RemoteConfigParameterImpl value, $Res Function(_$RemoteConfigParameterImpl) then) = __$$RemoteConfigParameterImplCopyWithImpl<$Res>; @override @useResult @@ -118,12 +110,9 @@ abstract class _$$RemoteConfigParameterImplCopyWith<$Res> } /// @nodoc -class __$$RemoteConfigParameterImplCopyWithImpl<$Res> - extends _$RemoteConfigParameterCopyWithImpl<$Res, - _$RemoteConfigParameterImpl> +class __$$RemoteConfigParameterImplCopyWithImpl<$Res> extends _$RemoteConfigParameterCopyWithImpl<$Res, _$RemoteConfigParameterImpl> implements _$$RemoteConfigParameterImplCopyWith<$Res> { - __$$RemoteConfigParameterImplCopyWithImpl(_$RemoteConfigParameterImpl _value, - $Res Function(_$RemoteConfigParameterImpl) _then) + __$$RemoteConfigParameterImplCopyWithImpl(_$RemoteConfigParameterImpl _value, $Res Function(_$RemoteConfigParameterImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -170,20 +159,14 @@ class __$$RemoteConfigParameterImplCopyWithImpl<$Res> class _$RemoteConfigParameterImpl extends _RemoteConfigParameter { _$RemoteConfigParameterImpl( {this.isPaywallFirst = RemoteConfigParameterDefaultValues.isPaywallFirst, - this.skipInitialSetting = - RemoteConfigParameterDefaultValues.skipInitialSetting, - this.trialDeadlineDateOffsetDay = - RemoteConfigParameterDefaultValues.trialDeadlineDateOffsetDay, - this.discountEntitlementOffsetDay = - RemoteConfigParameterDefaultValues.discountEntitlementOffsetDay, - this.discountCountdownBoundaryHour = - RemoteConfigParameterDefaultValues.discountCountdownBoundaryHour, - this.premiumIntroductionPattern = - RemoteConfigParameterDefaultValues.premiumIntroductionPattern}) + this.skipInitialSetting = RemoteConfigParameterDefaultValues.skipInitialSetting, + this.trialDeadlineDateOffsetDay = RemoteConfigParameterDefaultValues.trialDeadlineDateOffsetDay, + this.discountEntitlementOffsetDay = RemoteConfigParameterDefaultValues.discountEntitlementOffsetDay, + this.discountCountdownBoundaryHour = RemoteConfigParameterDefaultValues.discountCountdownBoundaryHour, + this.premiumIntroductionPattern = RemoteConfigParameterDefaultValues.premiumIntroductionPattern}) : super._(); - factory _$RemoteConfigParameterImpl.fromJson(Map json) => - _$$RemoteConfigParameterImplFromJson(json); + factory _$RemoteConfigParameterImpl.fromJson(Map json) => _$$RemoteConfigParameterImplFromJson(json); @override @JsonKey() @@ -214,45 +197,28 @@ class _$RemoteConfigParameterImpl extends _RemoteConfigParameter { return identical(this, other) || (other.runtimeType == runtimeType && other is _$RemoteConfigParameterImpl && - (identical(other.isPaywallFirst, isPaywallFirst) || - other.isPaywallFirst == isPaywallFirst) && - (identical(other.skipInitialSetting, skipInitialSetting) || - other.skipInitialSetting == skipInitialSetting) && - (identical(other.trialDeadlineDateOffsetDay, - trialDeadlineDateOffsetDay) || - other.trialDeadlineDateOffsetDay == - trialDeadlineDateOffsetDay) && - (identical(other.discountEntitlementOffsetDay, - discountEntitlementOffsetDay) || - other.discountEntitlementOffsetDay == - discountEntitlementOffsetDay) && - (identical(other.discountCountdownBoundaryHour, - discountCountdownBoundaryHour) || - other.discountCountdownBoundaryHour == - discountCountdownBoundaryHour) && - (identical(other.premiumIntroductionPattern, - premiumIntroductionPattern) || - other.premiumIntroductionPattern == - premiumIntroductionPattern)); + (identical(other.isPaywallFirst, isPaywallFirst) || other.isPaywallFirst == isPaywallFirst) && + (identical(other.skipInitialSetting, skipInitialSetting) || other.skipInitialSetting == skipInitialSetting) && + (identical(other.trialDeadlineDateOffsetDay, trialDeadlineDateOffsetDay) || + other.trialDeadlineDateOffsetDay == trialDeadlineDateOffsetDay) && + (identical(other.discountEntitlementOffsetDay, discountEntitlementOffsetDay) || + other.discountEntitlementOffsetDay == discountEntitlementOffsetDay) && + (identical(other.discountCountdownBoundaryHour, discountCountdownBoundaryHour) || + other.discountCountdownBoundaryHour == discountCountdownBoundaryHour) && + (identical(other.premiumIntroductionPattern, premiumIntroductionPattern) || + other.premiumIntroductionPattern == premiumIntroductionPattern)); } @JsonKey(ignore: true) @override - int get hashCode => Object.hash( - runtimeType, - isPaywallFirst, - skipInitialSetting, - trialDeadlineDateOffsetDay, - discountEntitlementOffsetDay, - discountCountdownBoundaryHour, - premiumIntroductionPattern); + int get hashCode => Object.hash(runtimeType, isPaywallFirst, skipInitialSetting, trialDeadlineDateOffsetDay, discountEntitlementOffsetDay, + discountCountdownBoundaryHour, premiumIntroductionPattern); @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$RemoteConfigParameterImplCopyWith<_$RemoteConfigParameterImpl> - get copyWith => __$$RemoteConfigParameterImplCopyWithImpl< - _$RemoteConfigParameterImpl>(this, _$identity); + _$$RemoteConfigParameterImplCopyWith<_$RemoteConfigParameterImpl> get copyWith => + __$$RemoteConfigParameterImplCopyWithImpl<_$RemoteConfigParameterImpl>(this, _$identity); @override Map toJson() { @@ -272,8 +238,7 @@ abstract class _RemoteConfigParameter extends RemoteConfigParameter { final String premiumIntroductionPattern}) = _$RemoteConfigParameterImpl; _RemoteConfigParameter._() : super._(); - factory _RemoteConfigParameter.fromJson(Map json) = - _$RemoteConfigParameterImpl.fromJson; + factory _RemoteConfigParameter.fromJson(Map json) = _$RemoteConfigParameterImpl.fromJson; @override bool get isPaywallFirst; @@ -289,6 +254,5 @@ abstract class _RemoteConfigParameter extends RemoteConfigParameter { String get premiumIntroductionPattern; @override @JsonKey(ignore: true) - _$$RemoteConfigParameterImplCopyWith<_$RemoteConfigParameterImpl> - get copyWith => throw _privateConstructorUsedError; + _$$RemoteConfigParameterImplCopyWith<_$RemoteConfigParameterImpl> get copyWith => throw _privateConstructorUsedError; } diff --git a/lib/entity/remote_config_parameter.codegen.g.dart b/lib/entity/remote_config_parameter.codegen.g.dart index 11efcacba8..9b72ea9226 100644 --- a/lib/entity/remote_config_parameter.codegen.g.dart +++ b/lib/entity/remote_config_parameter.codegen.g.dart @@ -6,30 +6,19 @@ part of 'remote_config_parameter.codegen.dart'; // JsonSerializableGenerator // ************************************************************************** -_$RemoteConfigParameterImpl _$$RemoteConfigParameterImplFromJson( - Map json) => - _$RemoteConfigParameterImpl( - isPaywallFirst: json['isPaywallFirst'] as bool? ?? - RemoteConfigParameterDefaultValues.isPaywallFirst, - skipInitialSetting: json['skipInitialSetting'] as bool? ?? - RemoteConfigParameterDefaultValues.skipInitialSetting, +_$RemoteConfigParameterImpl _$$RemoteConfigParameterImplFromJson(Map json) => _$RemoteConfigParameterImpl( + isPaywallFirst: json['isPaywallFirst'] as bool? ?? RemoteConfigParameterDefaultValues.isPaywallFirst, + skipInitialSetting: json['skipInitialSetting'] as bool? ?? RemoteConfigParameterDefaultValues.skipInitialSetting, trialDeadlineDateOffsetDay: - (json['trialDeadlineDateOffsetDay'] as num?)?.toInt() ?? - RemoteConfigParameterDefaultValues.trialDeadlineDateOffsetDay, + (json['trialDeadlineDateOffsetDay'] as num?)?.toInt() ?? RemoteConfigParameterDefaultValues.trialDeadlineDateOffsetDay, discountEntitlementOffsetDay: - (json['discountEntitlementOffsetDay'] as num?)?.toInt() ?? - RemoteConfigParameterDefaultValues.discountEntitlementOffsetDay, + (json['discountEntitlementOffsetDay'] as num?)?.toInt() ?? RemoteConfigParameterDefaultValues.discountEntitlementOffsetDay, discountCountdownBoundaryHour: - (json['discountCountdownBoundaryHour'] as num?)?.toInt() ?? - RemoteConfigParameterDefaultValues.discountCountdownBoundaryHour, - premiumIntroductionPattern: - json['premiumIntroductionPattern'] as String? ?? - RemoteConfigParameterDefaultValues.premiumIntroductionPattern, + (json['discountCountdownBoundaryHour'] as num?)?.toInt() ?? RemoteConfigParameterDefaultValues.discountCountdownBoundaryHour, + premiumIntroductionPattern: json['premiumIntroductionPattern'] as String? ?? RemoteConfigParameterDefaultValues.premiumIntroductionPattern, ); -Map _$$RemoteConfigParameterImplToJson( - _$RemoteConfigParameterImpl instance) => - { +Map _$$RemoteConfigParameterImplToJson(_$RemoteConfigParameterImpl instance) => { 'isPaywallFirst': instance.isPaywallFirst, 'skipInitialSetting': instance.skipInitialSetting, 'trialDeadlineDateOffsetDay': instance.trialDeadlineDateOffsetDay, diff --git a/lib/entity/schedule.codegen.freezed.dart b/lib/entity/schedule.codegen.freezed.dart index af0ad13d6d..14faebecbe 100644 --- a/lib/entity/schedule.codegen.freezed.dart +++ b/lib/entity/schedule.codegen.freezed.dart @@ -23,47 +23,34 @@ mixin _$Schedule { @JsonKey(includeIfNull: false) String? get id => throw _privateConstructorUsedError; String get title => throw _privateConstructorUsedError; - @JsonKey( - fromJson: NonNullTimestampConverter.timestampToDateTime, - toJson: NonNullTimestampConverter.dateTimeToTimestamp) + @JsonKey(fromJson: NonNullTimestampConverter.timestampToDateTime, toJson: NonNullTimestampConverter.dateTimeToTimestamp) DateTime get date => throw _privateConstructorUsedError; - LocalNotification? get localNotification => - throw _privateConstructorUsedError; - @JsonKey( - fromJson: NonNullTimestampConverter.timestampToDateTime, - toJson: NonNullTimestampConverter.dateTimeToTimestamp) + LocalNotification? get localNotification => throw _privateConstructorUsedError; + @JsonKey(fromJson: NonNullTimestampConverter.timestampToDateTime, toJson: NonNullTimestampConverter.dateTimeToTimestamp) DateTime get createdDateTime => throw _privateConstructorUsedError; Map toJson() => throw _privateConstructorUsedError; @JsonKey(ignore: true) - $ScheduleCopyWith get copyWith => - throw _privateConstructorUsedError; + $ScheduleCopyWith get copyWith => throw _privateConstructorUsedError; } /// @nodoc abstract class $ScheduleCopyWith<$Res> { - factory $ScheduleCopyWith(Schedule value, $Res Function(Schedule) then) = - _$ScheduleCopyWithImpl<$Res, Schedule>; + factory $ScheduleCopyWith(Schedule value, $Res Function(Schedule) then) = _$ScheduleCopyWithImpl<$Res, Schedule>; @useResult $Res call( {@JsonKey(includeIfNull: false) String? id, String title, - @JsonKey( - fromJson: NonNullTimestampConverter.timestampToDateTime, - toJson: NonNullTimestampConverter.dateTimeToTimestamp) - DateTime date, + @JsonKey(fromJson: NonNullTimestampConverter.timestampToDateTime, toJson: NonNullTimestampConverter.dateTimeToTimestamp) DateTime date, LocalNotification? localNotification, - @JsonKey( - fromJson: NonNullTimestampConverter.timestampToDateTime, - toJson: NonNullTimestampConverter.dateTimeToTimestamp) + @JsonKey(fromJson: NonNullTimestampConverter.timestampToDateTime, toJson: NonNullTimestampConverter.dateTimeToTimestamp) DateTime createdDateTime}); $LocalNotificationCopyWith<$Res>? get localNotification; } /// @nodoc -class _$ScheduleCopyWithImpl<$Res, $Val extends Schedule> - implements $ScheduleCopyWith<$Res> { +class _$ScheduleCopyWithImpl<$Res, $Val extends Schedule> implements $ScheduleCopyWith<$Res> { _$ScheduleCopyWithImpl(this._value, this._then); // ignore: unused_field @@ -118,24 +105,16 @@ class _$ScheduleCopyWithImpl<$Res, $Val extends Schedule> } /// @nodoc -abstract class _$$ScheduleImplCopyWith<$Res> - implements $ScheduleCopyWith<$Res> { - factory _$$ScheduleImplCopyWith( - _$ScheduleImpl value, $Res Function(_$ScheduleImpl) then) = - __$$ScheduleImplCopyWithImpl<$Res>; +abstract class _$$ScheduleImplCopyWith<$Res> implements $ScheduleCopyWith<$Res> { + factory _$$ScheduleImplCopyWith(_$ScheduleImpl value, $Res Function(_$ScheduleImpl) then) = __$$ScheduleImplCopyWithImpl<$Res>; @override @useResult $Res call( {@JsonKey(includeIfNull: false) String? id, String title, - @JsonKey( - fromJson: NonNullTimestampConverter.timestampToDateTime, - toJson: NonNullTimestampConverter.dateTimeToTimestamp) - DateTime date, + @JsonKey(fromJson: NonNullTimestampConverter.timestampToDateTime, toJson: NonNullTimestampConverter.dateTimeToTimestamp) DateTime date, LocalNotification? localNotification, - @JsonKey( - fromJson: NonNullTimestampConverter.timestampToDateTime, - toJson: NonNullTimestampConverter.dateTimeToTimestamp) + @JsonKey(fromJson: NonNullTimestampConverter.timestampToDateTime, toJson: NonNullTimestampConverter.dateTimeToTimestamp) DateTime createdDateTime}); @override @@ -143,12 +122,8 @@ abstract class _$$ScheduleImplCopyWith<$Res> } /// @nodoc -class __$$ScheduleImplCopyWithImpl<$Res> - extends _$ScheduleCopyWithImpl<$Res, _$ScheduleImpl> - implements _$$ScheduleImplCopyWith<$Res> { - __$$ScheduleImplCopyWithImpl( - _$ScheduleImpl _value, $Res Function(_$ScheduleImpl) _then) - : super(_value, _then); +class __$$ScheduleImplCopyWithImpl<$Res> extends _$ScheduleCopyWithImpl<$Res, _$ScheduleImpl> implements _$$ScheduleImplCopyWith<$Res> { + __$$ScheduleImplCopyWithImpl(_$ScheduleImpl _value, $Res Function(_$ScheduleImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @override @@ -191,19 +166,13 @@ class _$ScheduleImpl extends _Schedule { const _$ScheduleImpl( {@JsonKey(includeIfNull: false) this.id, required this.title, - @JsonKey( - fromJson: NonNullTimestampConverter.timestampToDateTime, - toJson: NonNullTimestampConverter.dateTimeToTimestamp) - required this.date, + @JsonKey(fromJson: NonNullTimestampConverter.timestampToDateTime, toJson: NonNullTimestampConverter.dateTimeToTimestamp) required this.date, this.localNotification, - @JsonKey( - fromJson: NonNullTimestampConverter.timestampToDateTime, - toJson: NonNullTimestampConverter.dateTimeToTimestamp) + @JsonKey(fromJson: NonNullTimestampConverter.timestampToDateTime, toJson: NonNullTimestampConverter.dateTimeToTimestamp) required this.createdDateTime}) : super._(); - factory _$ScheduleImpl.fromJson(Map json) => - _$$ScheduleImplFromJson(json); + factory _$ScheduleImpl.fromJson(Map json) => _$$ScheduleImplFromJson(json); @override @JsonKey(includeIfNull: false) @@ -211,16 +180,12 @@ class _$ScheduleImpl extends _Schedule { @override final String title; @override - @JsonKey( - fromJson: NonNullTimestampConverter.timestampToDateTime, - toJson: NonNullTimestampConverter.dateTimeToTimestamp) + @JsonKey(fromJson: NonNullTimestampConverter.timestampToDateTime, toJson: NonNullTimestampConverter.dateTimeToTimestamp) final DateTime date; @override final LocalNotification? localNotification; @override - @JsonKey( - fromJson: NonNullTimestampConverter.timestampToDateTime, - toJson: NonNullTimestampConverter.dateTimeToTimestamp) + @JsonKey(fromJson: NonNullTimestampConverter.timestampToDateTime, toJson: NonNullTimestampConverter.dateTimeToTimestamp) final DateTime createdDateTime; @override @@ -236,22 +201,18 @@ class _$ScheduleImpl extends _Schedule { (identical(other.id, id) || other.id == id) && (identical(other.title, title) || other.title == title) && (identical(other.date, date) || other.date == date) && - (identical(other.localNotification, localNotification) || - other.localNotification == localNotification) && - (identical(other.createdDateTime, createdDateTime) || - other.createdDateTime == createdDateTime)); + (identical(other.localNotification, localNotification) || other.localNotification == localNotification) && + (identical(other.createdDateTime, createdDateTime) || other.createdDateTime == createdDateTime)); } @JsonKey(ignore: true) @override - int get hashCode => Object.hash( - runtimeType, id, title, date, localNotification, createdDateTime); + int get hashCode => Object.hash(runtimeType, id, title, date, localNotification, createdDateTime); @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$ScheduleImplCopyWith<_$ScheduleImpl> get copyWith => - __$$ScheduleImplCopyWithImpl<_$ScheduleImpl>(this, _$identity); + _$$ScheduleImplCopyWith<_$ScheduleImpl> get copyWith => __$$ScheduleImplCopyWithImpl<_$ScheduleImpl>(this, _$identity); @override Map toJson() { @@ -265,19 +226,14 @@ abstract class _Schedule extends Schedule { const factory _Schedule( {@JsonKey(includeIfNull: false) final String? id, required final String title, - @JsonKey( - fromJson: NonNullTimestampConverter.timestampToDateTime, - toJson: NonNullTimestampConverter.dateTimeToTimestamp) + @JsonKey(fromJson: NonNullTimestampConverter.timestampToDateTime, toJson: NonNullTimestampConverter.dateTimeToTimestamp) required final DateTime date, final LocalNotification? localNotification, - @JsonKey( - fromJson: NonNullTimestampConverter.timestampToDateTime, - toJson: NonNullTimestampConverter.dateTimeToTimestamp) + @JsonKey(fromJson: NonNullTimestampConverter.timestampToDateTime, toJson: NonNullTimestampConverter.dateTimeToTimestamp) required final DateTime createdDateTime}) = _$ScheduleImpl; const _Schedule._() : super._(); - factory _Schedule.fromJson(Map json) = - _$ScheduleImpl.fromJson; + factory _Schedule.fromJson(Map json) = _$ScheduleImpl.fromJson; @override @JsonKey(includeIfNull: false) @@ -285,21 +241,16 @@ abstract class _Schedule extends Schedule { @override String get title; @override - @JsonKey( - fromJson: NonNullTimestampConverter.timestampToDateTime, - toJson: NonNullTimestampConverter.dateTimeToTimestamp) + @JsonKey(fromJson: NonNullTimestampConverter.timestampToDateTime, toJson: NonNullTimestampConverter.dateTimeToTimestamp) DateTime get date; @override LocalNotification? get localNotification; @override - @JsonKey( - fromJson: NonNullTimestampConverter.timestampToDateTime, - toJson: NonNullTimestampConverter.dateTimeToTimestamp) + @JsonKey(fromJson: NonNullTimestampConverter.timestampToDateTime, toJson: NonNullTimestampConverter.dateTimeToTimestamp) DateTime get createdDateTime; @override @JsonKey(ignore: true) - _$$ScheduleImplCopyWith<_$ScheduleImpl> get copyWith => - throw _privateConstructorUsedError; + _$$ScheduleImplCopyWith<_$ScheduleImpl> get copyWith => throw _privateConstructorUsedError; } LocalNotification _$LocalNotificationFromJson(Map json) { @@ -309,34 +260,27 @@ LocalNotification _$LocalNotificationFromJson(Map json) { /// @nodoc mixin _$LocalNotification { int get localNotificationID => throw _privateConstructorUsedError; - @JsonKey( - fromJson: NonNullTimestampConverter.timestampToDateTime, - toJson: NonNullTimestampConverter.dateTimeToTimestamp) + @JsonKey(fromJson: NonNullTimestampConverter.timestampToDateTime, toJson: NonNullTimestampConverter.dateTimeToTimestamp) DateTime get remindDateTime => throw _privateConstructorUsedError; Map toJson() => throw _privateConstructorUsedError; @JsonKey(ignore: true) - $LocalNotificationCopyWith get copyWith => - throw _privateConstructorUsedError; + $LocalNotificationCopyWith get copyWith => throw _privateConstructorUsedError; } /// @nodoc abstract class $LocalNotificationCopyWith<$Res> { - factory $LocalNotificationCopyWith( - LocalNotification value, $Res Function(LocalNotification) then) = + factory $LocalNotificationCopyWith(LocalNotification value, $Res Function(LocalNotification) then) = _$LocalNotificationCopyWithImpl<$Res, LocalNotification>; @useResult $Res call( {int localNotificationID, - @JsonKey( - fromJson: NonNullTimestampConverter.timestampToDateTime, - toJson: NonNullTimestampConverter.dateTimeToTimestamp) + @JsonKey(fromJson: NonNullTimestampConverter.timestampToDateTime, toJson: NonNullTimestampConverter.dateTimeToTimestamp) DateTime remindDateTime}); } /// @nodoc -class _$LocalNotificationCopyWithImpl<$Res, $Val extends LocalNotification> - implements $LocalNotificationCopyWith<$Res> { +class _$LocalNotificationCopyWithImpl<$Res, $Val extends LocalNotification> implements $LocalNotificationCopyWith<$Res> { _$LocalNotificationCopyWithImpl(this._value, this._then); // ignore: unused_field @@ -364,28 +308,21 @@ class _$LocalNotificationCopyWithImpl<$Res, $Val extends LocalNotification> } /// @nodoc -abstract class _$$LocalNotificationImplCopyWith<$Res> - implements $LocalNotificationCopyWith<$Res> { - factory _$$LocalNotificationImplCopyWith(_$LocalNotificationImpl value, - $Res Function(_$LocalNotificationImpl) then) = +abstract class _$$LocalNotificationImplCopyWith<$Res> implements $LocalNotificationCopyWith<$Res> { + factory _$$LocalNotificationImplCopyWith(_$LocalNotificationImpl value, $Res Function(_$LocalNotificationImpl) then) = __$$LocalNotificationImplCopyWithImpl<$Res>; @override @useResult $Res call( {int localNotificationID, - @JsonKey( - fromJson: NonNullTimestampConverter.timestampToDateTime, - toJson: NonNullTimestampConverter.dateTimeToTimestamp) + @JsonKey(fromJson: NonNullTimestampConverter.timestampToDateTime, toJson: NonNullTimestampConverter.dateTimeToTimestamp) DateTime remindDateTime}); } /// @nodoc -class __$$LocalNotificationImplCopyWithImpl<$Res> - extends _$LocalNotificationCopyWithImpl<$Res, _$LocalNotificationImpl> +class __$$LocalNotificationImplCopyWithImpl<$Res> extends _$LocalNotificationCopyWithImpl<$Res, _$LocalNotificationImpl> implements _$$LocalNotificationImplCopyWith<$Res> { - __$$LocalNotificationImplCopyWithImpl(_$LocalNotificationImpl _value, - $Res Function(_$LocalNotificationImpl) _then) - : super(_value, _then); + __$$LocalNotificationImplCopyWithImpl(_$LocalNotificationImpl _value, $Res Function(_$LocalNotificationImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @override @@ -412,21 +349,16 @@ class __$$LocalNotificationImplCopyWithImpl<$Res> class _$LocalNotificationImpl extends _LocalNotification { const _$LocalNotificationImpl( {required this.localNotificationID, - @JsonKey( - fromJson: NonNullTimestampConverter.timestampToDateTime, - toJson: NonNullTimestampConverter.dateTimeToTimestamp) + @JsonKey(fromJson: NonNullTimestampConverter.timestampToDateTime, toJson: NonNullTimestampConverter.dateTimeToTimestamp) required this.remindDateTime}) : super._(); - factory _$LocalNotificationImpl.fromJson(Map json) => - _$$LocalNotificationImplFromJson(json); + factory _$LocalNotificationImpl.fromJson(Map json) => _$$LocalNotificationImplFromJson(json); @override final int localNotificationID; @override - @JsonKey( - fromJson: NonNullTimestampConverter.timestampToDateTime, - toJson: NonNullTimestampConverter.dateTimeToTimestamp) + @JsonKey(fromJson: NonNullTimestampConverter.timestampToDateTime, toJson: NonNullTimestampConverter.dateTimeToTimestamp) final DateTime remindDateTime; @override @@ -439,23 +371,19 @@ class _$LocalNotificationImpl extends _LocalNotification { return identical(this, other) || (other.runtimeType == runtimeType && other is _$LocalNotificationImpl && - (identical(other.localNotificationID, localNotificationID) || - other.localNotificationID == localNotificationID) && - (identical(other.remindDateTime, remindDateTime) || - other.remindDateTime == remindDateTime)); + (identical(other.localNotificationID, localNotificationID) || other.localNotificationID == localNotificationID) && + (identical(other.remindDateTime, remindDateTime) || other.remindDateTime == remindDateTime)); } @JsonKey(ignore: true) @override - int get hashCode => - Object.hash(runtimeType, localNotificationID, remindDateTime); + int get hashCode => Object.hash(runtimeType, localNotificationID, remindDateTime); @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') _$$LocalNotificationImplCopyWith<_$LocalNotificationImpl> get copyWith => - __$$LocalNotificationImplCopyWithImpl<_$LocalNotificationImpl>( - this, _$identity); + __$$LocalNotificationImplCopyWithImpl<_$LocalNotificationImpl>(this, _$identity); @override Map toJson() { @@ -468,24 +396,18 @@ class _$LocalNotificationImpl extends _LocalNotification { abstract class _LocalNotification extends LocalNotification { const factory _LocalNotification( {required final int localNotificationID, - @JsonKey( - fromJson: NonNullTimestampConverter.timestampToDateTime, - toJson: NonNullTimestampConverter.dateTimeToTimestamp) + @JsonKey(fromJson: NonNullTimestampConverter.timestampToDateTime, toJson: NonNullTimestampConverter.dateTimeToTimestamp) required final DateTime remindDateTime}) = _$LocalNotificationImpl; const _LocalNotification._() : super._(); - factory _LocalNotification.fromJson(Map json) = - _$LocalNotificationImpl.fromJson; + factory _LocalNotification.fromJson(Map json) = _$LocalNotificationImpl.fromJson; @override int get localNotificationID; @override - @JsonKey( - fromJson: NonNullTimestampConverter.timestampToDateTime, - toJson: NonNullTimestampConverter.dateTimeToTimestamp) + @JsonKey(fromJson: NonNullTimestampConverter.timestampToDateTime, toJson: NonNullTimestampConverter.dateTimeToTimestamp) DateTime get remindDateTime; @override @JsonKey(ignore: true) - _$$LocalNotificationImplCopyWith<_$LocalNotificationImpl> get copyWith => - throw _privateConstructorUsedError; + _$$LocalNotificationImplCopyWith<_$LocalNotificationImpl> get copyWith => throw _privateConstructorUsedError; } diff --git a/lib/entity/schedule.codegen.g.dart b/lib/entity/schedule.codegen.g.dart index e22a24a97f..f6c9d6aff5 100644 --- a/lib/entity/schedule.codegen.g.dart +++ b/lib/entity/schedule.codegen.g.dart @@ -6,18 +6,12 @@ part of 'schedule.codegen.dart'; // JsonSerializableGenerator // ************************************************************************** -_$ScheduleImpl _$$ScheduleImplFromJson(Map json) => - _$ScheduleImpl( +_$ScheduleImpl _$$ScheduleImplFromJson(Map json) => _$ScheduleImpl( id: json['id'] as String?, title: json['title'] as String, - date: NonNullTimestampConverter.timestampToDateTime( - json['date'] as Timestamp), - localNotification: json['localNotification'] == null - ? null - : LocalNotification.fromJson( - json['localNotification'] as Map), - createdDateTime: NonNullTimestampConverter.timestampToDateTime( - json['createdDateTime'] as Timestamp), + date: NonNullTimestampConverter.timestampToDateTime(json['date'] as Timestamp), + localNotification: json['localNotification'] == null ? null : LocalNotification.fromJson(json['localNotification'] as Map), + createdDateTime: NonNullTimestampConverter.timestampToDateTime(json['createdDateTime'] as Timestamp), ); Map _$$ScheduleImplToJson(_$ScheduleImpl instance) { @@ -33,23 +27,16 @@ Map _$$ScheduleImplToJson(_$ScheduleImpl instance) { val['title'] = instance.title; val['date'] = NonNullTimestampConverter.dateTimeToTimestamp(instance.date); val['localNotification'] = instance.localNotification?.toJson(); - val['createdDateTime'] = - NonNullTimestampConverter.dateTimeToTimestamp(instance.createdDateTime); + val['createdDateTime'] = NonNullTimestampConverter.dateTimeToTimestamp(instance.createdDateTime); return val; } -_$LocalNotificationImpl _$$LocalNotificationImplFromJson( - Map json) => - _$LocalNotificationImpl( +_$LocalNotificationImpl _$$LocalNotificationImplFromJson(Map json) => _$LocalNotificationImpl( localNotificationID: (json['localNotificationID'] as num).toInt(), - remindDateTime: NonNullTimestampConverter.timestampToDateTime( - json['remindDateTime'] as Timestamp), + remindDateTime: NonNullTimestampConverter.timestampToDateTime(json['remindDateTime'] as Timestamp), ); -Map _$$LocalNotificationImplToJson( - _$LocalNotificationImpl instance) => - { +Map _$$LocalNotificationImplToJson(_$LocalNotificationImpl instance) => { 'localNotificationID': instance.localNotificationID, - 'remindDateTime': NonNullTimestampConverter.dateTimeToTimestamp( - instance.remindDateTime), + 'remindDateTime': NonNullTimestampConverter.dateTimeToTimestamp(instance.remindDateTime), }; diff --git a/lib/entity/setting.codegen.freezed.dart b/lib/entity/setting.codegen.freezed.dart index 5249fd0de0..e6e351b33c 100644 --- a/lib/entity/setting.codegen.freezed.dart +++ b/lib/entity/setting.codegen.freezed.dart @@ -25,22 +25,18 @@ mixin _$ReminderTime { Map toJson() => throw _privateConstructorUsedError; @JsonKey(ignore: true) - $ReminderTimeCopyWith get copyWith => - throw _privateConstructorUsedError; + $ReminderTimeCopyWith get copyWith => throw _privateConstructorUsedError; } /// @nodoc abstract class $ReminderTimeCopyWith<$Res> { - factory $ReminderTimeCopyWith( - ReminderTime value, $Res Function(ReminderTime) then) = - _$ReminderTimeCopyWithImpl<$Res, ReminderTime>; + factory $ReminderTimeCopyWith(ReminderTime value, $Res Function(ReminderTime) then) = _$ReminderTimeCopyWithImpl<$Res, ReminderTime>; @useResult $Res call({int hour, int minute}); } /// @nodoc -class _$ReminderTimeCopyWithImpl<$Res, $Val extends ReminderTime> - implements $ReminderTimeCopyWith<$Res> { +class _$ReminderTimeCopyWithImpl<$Res, $Val extends ReminderTime> implements $ReminderTimeCopyWith<$Res> { _$ReminderTimeCopyWithImpl(this._value, this._then); // ignore: unused_field @@ -68,23 +64,17 @@ class _$ReminderTimeCopyWithImpl<$Res, $Val extends ReminderTime> } /// @nodoc -abstract class _$$ReminderTimeImplCopyWith<$Res> - implements $ReminderTimeCopyWith<$Res> { - factory _$$ReminderTimeImplCopyWith( - _$ReminderTimeImpl value, $Res Function(_$ReminderTimeImpl) then) = - __$$ReminderTimeImplCopyWithImpl<$Res>; +abstract class _$$ReminderTimeImplCopyWith<$Res> implements $ReminderTimeCopyWith<$Res> { + factory _$$ReminderTimeImplCopyWith(_$ReminderTimeImpl value, $Res Function(_$ReminderTimeImpl) then) = __$$ReminderTimeImplCopyWithImpl<$Res>; @override @useResult $Res call({int hour, int minute}); } /// @nodoc -class __$$ReminderTimeImplCopyWithImpl<$Res> - extends _$ReminderTimeCopyWithImpl<$Res, _$ReminderTimeImpl> +class __$$ReminderTimeImplCopyWithImpl<$Res> extends _$ReminderTimeCopyWithImpl<$Res, _$ReminderTimeImpl> implements _$$ReminderTimeImplCopyWith<$Res> { - __$$ReminderTimeImplCopyWithImpl( - _$ReminderTimeImpl _value, $Res Function(_$ReminderTimeImpl) _then) - : super(_value, _then); + __$$ReminderTimeImplCopyWithImpl(_$ReminderTimeImpl _value, $Res Function(_$ReminderTimeImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @override @@ -109,11 +99,9 @@ class __$$ReminderTimeImplCopyWithImpl<$Res> @JsonSerializable(explicitToJson: true) class _$ReminderTimeImpl extends _ReminderTime with DiagnosticableTreeMixin { - const _$ReminderTimeImpl({required this.hour, required this.minute}) - : super._(); + const _$ReminderTimeImpl({required this.hour, required this.minute}) : super._(); - factory _$ReminderTimeImpl.fromJson(Map json) => - _$$ReminderTimeImplFromJson(json); + factory _$ReminderTimeImpl.fromJson(Map json) => _$$ReminderTimeImplFromJson(json); @override final int hour; @@ -150,8 +138,7 @@ class _$ReminderTimeImpl extends _ReminderTime with DiagnosticableTreeMixin { @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$ReminderTimeImplCopyWith<_$ReminderTimeImpl> get copyWith => - __$$ReminderTimeImplCopyWithImpl<_$ReminderTimeImpl>(this, _$identity); + _$$ReminderTimeImplCopyWith<_$ReminderTimeImpl> get copyWith => __$$ReminderTimeImplCopyWithImpl<_$ReminderTimeImpl>(this, _$identity); @override Map toJson() { @@ -162,13 +149,10 @@ class _$ReminderTimeImpl extends _ReminderTime with DiagnosticableTreeMixin { } abstract class _ReminderTime extends ReminderTime { - const factory _ReminderTime( - {required final int hour, - required final int minute}) = _$ReminderTimeImpl; + const factory _ReminderTime({required final int hour, required final int minute}) = _$ReminderTimeImpl; const _ReminderTime._() : super._(); - factory _ReminderTime.fromJson(Map json) = - _$ReminderTimeImpl.fromJson; + factory _ReminderTime.fromJson(Map json) = _$ReminderTimeImpl.fromJson; @override int get hour; @@ -176,8 +160,7 @@ abstract class _ReminderTime extends ReminderTime { int get minute; @override @JsonKey(ignore: true) - _$$ReminderTimeImplCopyWith<_$ReminderTimeImpl> get copyWith => - throw _privateConstructorUsedError; + _$$ReminderTimeImplCopyWith<_$ReminderTimeImpl> get copyWith => throw _privateConstructorUsedError; } Setting _$SettingFromJson(Map json) { @@ -193,13 +176,11 @@ mixin _$Setting { bool get isOnReminder => throw _privateConstructorUsedError; bool get isOnNotifyInNotTakenDuration => throw _privateConstructorUsedError; bool get isAutomaticallyCreatePillSheet => throw _privateConstructorUsedError; - ReminderNotificationCustomization get reminderNotificationCustomization => - throw _privateConstructorUsedError; // Deprecated + ReminderNotificationCustomization get reminderNotificationCustomization => throw _privateConstructorUsedError; // Deprecated // NOTE: [Migrate:PillSheetAppearanceMode] 頃合いを見て強制アップデートして浸透してから削除。since: 2024-10-12 // NOTE: [SyncData:Widget] このプロパティはWidgetに同期されてる。[Migrate:PillSheetAppearanceMode] で削除が完了するタイミングで PillSheetGroupの同様のプロパティで同期を測る @Deprecated("PillSheetGroupのpillSheetAppearanceModeを使用する") - PillSheetAppearanceMode get pillSheetAppearanceMode => - throw _privateConstructorUsedError; + PillSheetAppearanceMode get pillSheetAppearanceMode => throw _privateConstructorUsedError; String? get timezoneDatabaseName => throw _privateConstructorUsedError; Map toJson() => throw _privateConstructorUsedError; @@ -209,8 +190,7 @@ mixin _$Setting { /// @nodoc abstract class $SettingCopyWith<$Res> { - factory $SettingCopyWith(Setting value, $Res Function(Setting) then) = - _$SettingCopyWithImpl<$Res, Setting>; + factory $SettingCopyWith(Setting value, $Res Function(Setting) then) = _$SettingCopyWithImpl<$Res, Setting>; @useResult $Res call( {List pillSheetTypes, @@ -221,17 +201,14 @@ abstract class $SettingCopyWith<$Res> { bool isOnNotifyInNotTakenDuration, bool isAutomaticallyCreatePillSheet, ReminderNotificationCustomization reminderNotificationCustomization, - @Deprecated("PillSheetGroupのpillSheetAppearanceModeを使用する") - PillSheetAppearanceMode pillSheetAppearanceMode, + @Deprecated("PillSheetGroupのpillSheetAppearanceModeを使用する") PillSheetAppearanceMode pillSheetAppearanceMode, String? timezoneDatabaseName}); - $ReminderNotificationCustomizationCopyWith<$Res> - get reminderNotificationCustomization; + $ReminderNotificationCustomizationCopyWith<$Res> get reminderNotificationCustomization; } /// @nodoc -class _$SettingCopyWithImpl<$Res, $Val extends Setting> - implements $SettingCopyWith<$Res> { +class _$SettingCopyWithImpl<$Res, $Val extends Setting> implements $SettingCopyWith<$Res> { _$SettingCopyWithImpl(this._value, this._then); // ignore: unused_field @@ -282,8 +259,7 @@ class _$SettingCopyWithImpl<$Res, $Val extends Setting> ? _value.isAutomaticallyCreatePillSheet : isAutomaticallyCreatePillSheet // ignore: cast_nullable_to_non_nullable as bool, - reminderNotificationCustomization: null == - reminderNotificationCustomization + reminderNotificationCustomization: null == reminderNotificationCustomization ? _value.reminderNotificationCustomization : reminderNotificationCustomization // ignore: cast_nullable_to_non_nullable as ReminderNotificationCustomization, @@ -300,21 +276,16 @@ class _$SettingCopyWithImpl<$Res, $Val extends Setting> @override @pragma('vm:prefer-inline') - $ReminderNotificationCustomizationCopyWith<$Res> - get reminderNotificationCustomization { - return $ReminderNotificationCustomizationCopyWith<$Res>( - _value.reminderNotificationCustomization, (value) { - return _then( - _value.copyWith(reminderNotificationCustomization: value) as $Val); + $ReminderNotificationCustomizationCopyWith<$Res> get reminderNotificationCustomization { + return $ReminderNotificationCustomizationCopyWith<$Res>(_value.reminderNotificationCustomization, (value) { + return _then(_value.copyWith(reminderNotificationCustomization: value) as $Val); }); } } /// @nodoc abstract class _$$SettingImplCopyWith<$Res> implements $SettingCopyWith<$Res> { - factory _$$SettingImplCopyWith( - _$SettingImpl value, $Res Function(_$SettingImpl) then) = - __$$SettingImplCopyWithImpl<$Res>; + factory _$$SettingImplCopyWith(_$SettingImpl value, $Res Function(_$SettingImpl) then) = __$$SettingImplCopyWithImpl<$Res>; @override @useResult $Res call( @@ -326,22 +297,16 @@ abstract class _$$SettingImplCopyWith<$Res> implements $SettingCopyWith<$Res> { bool isOnNotifyInNotTakenDuration, bool isAutomaticallyCreatePillSheet, ReminderNotificationCustomization reminderNotificationCustomization, - @Deprecated("PillSheetGroupのpillSheetAppearanceModeを使用する") - PillSheetAppearanceMode pillSheetAppearanceMode, + @Deprecated("PillSheetGroupのpillSheetAppearanceModeを使用する") PillSheetAppearanceMode pillSheetAppearanceMode, String? timezoneDatabaseName}); @override - $ReminderNotificationCustomizationCopyWith<$Res> - get reminderNotificationCustomization; + $ReminderNotificationCustomizationCopyWith<$Res> get reminderNotificationCustomization; } /// @nodoc -class __$$SettingImplCopyWithImpl<$Res> - extends _$SettingCopyWithImpl<$Res, _$SettingImpl> - implements _$$SettingImplCopyWith<$Res> { - __$$SettingImplCopyWithImpl( - _$SettingImpl _value, $Res Function(_$SettingImpl) _then) - : super(_value, _then); +class __$$SettingImplCopyWithImpl<$Res> extends _$SettingCopyWithImpl<$Res, _$SettingImpl> implements _$$SettingImplCopyWith<$Res> { + __$$SettingImplCopyWithImpl(_$SettingImpl _value, $Res Function(_$SettingImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @override @@ -386,8 +351,7 @@ class __$$SettingImplCopyWithImpl<$Res> ? _value.isAutomaticallyCreatePillSheet : isAutomaticallyCreatePillSheet // ignore: cast_nullable_to_non_nullable as bool, - reminderNotificationCustomization: null == - reminderNotificationCustomization + reminderNotificationCustomization: null == reminderNotificationCustomization ? _value.reminderNotificationCustomization : reminderNotificationCustomization // ignore: cast_nullable_to_non_nullable as ReminderNotificationCustomization, @@ -415,17 +379,14 @@ class _$SettingImpl extends _Setting with DiagnosticableTreeMixin { required this.isOnReminder, this.isOnNotifyInNotTakenDuration = true, this.isAutomaticallyCreatePillSheet = false, - this.reminderNotificationCustomization = - const ReminderNotificationCustomization(), - @Deprecated("PillSheetGroupのpillSheetAppearanceModeを使用する") - this.pillSheetAppearanceMode = PillSheetAppearanceMode.number, + this.reminderNotificationCustomization = const ReminderNotificationCustomization(), + @Deprecated("PillSheetGroupのpillSheetAppearanceModeを使用する") this.pillSheetAppearanceMode = PillSheetAppearanceMode.number, required this.timezoneDatabaseName}) : _pillSheetTypes = pillSheetTypes, _reminderTimes = reminderTimes, super._(); - factory _$SettingImpl.fromJson(Map json) => - _$$SettingImplFromJson(json); + factory _$SettingImpl.fromJson(Map json) => _$$SettingImplFromJson(json); final List _pillSheetTypes; @override @@ -481,19 +442,14 @@ class _$SettingImpl extends _Setting with DiagnosticableTreeMixin { properties ..add(DiagnosticsProperty('type', 'Setting')) ..add(DiagnosticsProperty('pillSheetTypes', pillSheetTypes)) - ..add(DiagnosticsProperty( - 'pillNumberForFromMenstruation', pillNumberForFromMenstruation)) + ..add(DiagnosticsProperty('pillNumberForFromMenstruation', pillNumberForFromMenstruation)) ..add(DiagnosticsProperty('durationMenstruation', durationMenstruation)) ..add(DiagnosticsProperty('reminderTimes', reminderTimes)) ..add(DiagnosticsProperty('isOnReminder', isOnReminder)) - ..add(DiagnosticsProperty( - 'isOnNotifyInNotTakenDuration', isOnNotifyInNotTakenDuration)) - ..add(DiagnosticsProperty( - 'isAutomaticallyCreatePillSheet', isAutomaticallyCreatePillSheet)) - ..add(DiagnosticsProperty('reminderNotificationCustomization', - reminderNotificationCustomization)) - ..add(DiagnosticsProperty( - 'pillSheetAppearanceMode', pillSheetAppearanceMode)) + ..add(DiagnosticsProperty('isOnNotifyInNotTakenDuration', isOnNotifyInNotTakenDuration)) + ..add(DiagnosticsProperty('isAutomaticallyCreatePillSheet', isAutomaticallyCreatePillSheet)) + ..add(DiagnosticsProperty('reminderNotificationCustomization', reminderNotificationCustomization)) + ..add(DiagnosticsProperty('pillSheetAppearanceMode', pillSheetAppearanceMode)) ..add(DiagnosticsProperty('timezoneDatabaseName', timezoneDatabaseName)); } @@ -502,35 +458,20 @@ class _$SettingImpl extends _Setting with DiagnosticableTreeMixin { return identical(this, other) || (other.runtimeType == runtimeType && other is _$SettingImpl && - const DeepCollectionEquality() - .equals(other._pillSheetTypes, _pillSheetTypes) && - (identical(other.pillNumberForFromMenstruation, - pillNumberForFromMenstruation) || - other.pillNumberForFromMenstruation == - pillNumberForFromMenstruation) && - (identical(other.durationMenstruation, durationMenstruation) || - other.durationMenstruation == durationMenstruation) && - const DeepCollectionEquality() - .equals(other._reminderTimes, _reminderTimes) && - (identical(other.isOnReminder, isOnReminder) || - other.isOnReminder == isOnReminder) && - (identical(other.isOnNotifyInNotTakenDuration, - isOnNotifyInNotTakenDuration) || - other.isOnNotifyInNotTakenDuration == - isOnNotifyInNotTakenDuration) && - (identical(other.isAutomaticallyCreatePillSheet, - isAutomaticallyCreatePillSheet) || - other.isAutomaticallyCreatePillSheet == - isAutomaticallyCreatePillSheet) && - (identical(other.reminderNotificationCustomization, - reminderNotificationCustomization) || - other.reminderNotificationCustomization == - reminderNotificationCustomization) && - (identical( - other.pillSheetAppearanceMode, pillSheetAppearanceMode) || - other.pillSheetAppearanceMode == pillSheetAppearanceMode) && - (identical(other.timezoneDatabaseName, timezoneDatabaseName) || - other.timezoneDatabaseName == timezoneDatabaseName)); + const DeepCollectionEquality().equals(other._pillSheetTypes, _pillSheetTypes) && + (identical(other.pillNumberForFromMenstruation, pillNumberForFromMenstruation) || + other.pillNumberForFromMenstruation == pillNumberForFromMenstruation) && + (identical(other.durationMenstruation, durationMenstruation) || other.durationMenstruation == durationMenstruation) && + const DeepCollectionEquality().equals(other._reminderTimes, _reminderTimes) && + (identical(other.isOnReminder, isOnReminder) || other.isOnReminder == isOnReminder) && + (identical(other.isOnNotifyInNotTakenDuration, isOnNotifyInNotTakenDuration) || + other.isOnNotifyInNotTakenDuration == isOnNotifyInNotTakenDuration) && + (identical(other.isAutomaticallyCreatePillSheet, isAutomaticallyCreatePillSheet) || + other.isAutomaticallyCreatePillSheet == isAutomaticallyCreatePillSheet) && + (identical(other.reminderNotificationCustomization, reminderNotificationCustomization) || + other.reminderNotificationCustomization == reminderNotificationCustomization) && + (identical(other.pillSheetAppearanceMode, pillSheetAppearanceMode) || other.pillSheetAppearanceMode == pillSheetAppearanceMode) && + (identical(other.timezoneDatabaseName, timezoneDatabaseName) || other.timezoneDatabaseName == timezoneDatabaseName)); } @JsonKey(ignore: true) @@ -551,8 +492,7 @@ class _$SettingImpl extends _Setting with DiagnosticableTreeMixin { @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$SettingImplCopyWith<_$SettingImpl> get copyWith => - __$$SettingImplCopyWithImpl<_$SettingImpl>(this, _$identity); + _$$SettingImplCopyWith<_$SettingImpl> get copyWith => __$$SettingImplCopyWithImpl<_$SettingImpl>(this, _$identity); @override Map toJson() { @@ -572,8 +512,7 @@ abstract class _Setting extends Setting { final bool isOnNotifyInNotTakenDuration, final bool isAutomaticallyCreatePillSheet, final ReminderNotificationCustomization reminderNotificationCustomization, - @Deprecated("PillSheetGroupのpillSheetAppearanceModeを使用する") - final PillSheetAppearanceMode pillSheetAppearanceMode, + @Deprecated("PillSheetGroupのpillSheetAppearanceModeを使用する") final PillSheetAppearanceMode pillSheetAppearanceMode, required final String? timezoneDatabaseName}) = _$SettingImpl; const _Setting._() : super._(); @@ -604,6 +543,5 @@ abstract class _Setting extends Setting { String? get timezoneDatabaseName; @override @JsonKey(ignore: true) - _$$SettingImplCopyWith<_$SettingImpl> get copyWith => - throw _privateConstructorUsedError; + _$$SettingImplCopyWith<_$SettingImpl> get copyWith => throw _privateConstructorUsedError; } diff --git a/lib/entity/setting.codegen.g.dart b/lib/entity/setting.codegen.g.dart index 111f3241fe..476f112f9a 100644 --- a/lib/entity/setting.codegen.g.dart +++ b/lib/entity/setting.codegen.g.dart @@ -6,64 +6,42 @@ part of 'setting.codegen.dart'; // JsonSerializableGenerator // ************************************************************************** -_$ReminderTimeImpl _$$ReminderTimeImplFromJson(Map json) => - _$ReminderTimeImpl( +_$ReminderTimeImpl _$$ReminderTimeImplFromJson(Map json) => _$ReminderTimeImpl( hour: (json['hour'] as num).toInt(), minute: (json['minute'] as num).toInt(), ); -Map _$$ReminderTimeImplToJson(_$ReminderTimeImpl instance) => - { +Map _$$ReminderTimeImplToJson(_$ReminderTimeImpl instance) => { 'hour': instance.hour, 'minute': instance.minute, }; -_$SettingImpl _$$SettingImplFromJson(Map json) => - _$SettingImpl( - pillSheetTypes: (json['pillSheetTypes'] as List?) - ?.map((e) => $enumDecodeNullable(_$PillSheetTypeEnumMap, e)) - .toList() ?? - const [], - pillNumberForFromMenstruation: - (json['pillNumberForFromMenstruation'] as num).toInt(), +_$SettingImpl _$$SettingImplFromJson(Map json) => _$SettingImpl( + pillSheetTypes: (json['pillSheetTypes'] as List?)?.map((e) => $enumDecodeNullable(_$PillSheetTypeEnumMap, e)).toList() ?? const [], + pillNumberForFromMenstruation: (json['pillNumberForFromMenstruation'] as num).toInt(), durationMenstruation: (json['durationMenstruation'] as num).toInt(), - reminderTimes: (json['reminderTimes'] as List?) - ?.map((e) => ReminderTime.fromJson(e as Map)) - .toList() ?? - const [], + reminderTimes: (json['reminderTimes'] as List?)?.map((e) => ReminderTime.fromJson(e as Map)).toList() ?? const [], isOnReminder: json['isOnReminder'] as bool, - isOnNotifyInNotTakenDuration: - json['isOnNotifyInNotTakenDuration'] as bool? ?? true, - isAutomaticallyCreatePillSheet: - json['isAutomaticallyCreatePillSheet'] as bool? ?? false, - reminderNotificationCustomization: - json['reminderNotificationCustomization'] == null - ? const ReminderNotificationCustomization() - : ReminderNotificationCustomization.fromJson( - json['reminderNotificationCustomization'] - as Map), - pillSheetAppearanceMode: $enumDecodeNullable( - _$PillSheetAppearanceModeEnumMap, - json['pillSheetAppearanceMode']) ?? - PillSheetAppearanceMode.number, + isOnNotifyInNotTakenDuration: json['isOnNotifyInNotTakenDuration'] as bool? ?? true, + isAutomaticallyCreatePillSheet: json['isAutomaticallyCreatePillSheet'] as bool? ?? false, + reminderNotificationCustomization: json['reminderNotificationCustomization'] == null + ? const ReminderNotificationCustomization() + : ReminderNotificationCustomization.fromJson(json['reminderNotificationCustomization'] as Map), + pillSheetAppearanceMode: + $enumDecodeNullable(_$PillSheetAppearanceModeEnumMap, json['pillSheetAppearanceMode']) ?? PillSheetAppearanceMode.number, timezoneDatabaseName: json['timezoneDatabaseName'] as String?, ); -Map _$$SettingImplToJson(_$SettingImpl instance) => - { - 'pillSheetTypes': instance.pillSheetTypes - .map((e) => _$PillSheetTypeEnumMap[e]) - .toList(), +Map _$$SettingImplToJson(_$SettingImpl instance) => { + 'pillSheetTypes': instance.pillSheetTypes.map((e) => _$PillSheetTypeEnumMap[e]).toList(), 'pillNumberForFromMenstruation': instance.pillNumberForFromMenstruation, 'durationMenstruation': instance.durationMenstruation, 'reminderTimes': instance.reminderTimes.map((e) => e.toJson()).toList(), 'isOnReminder': instance.isOnReminder, 'isOnNotifyInNotTakenDuration': instance.isOnNotifyInNotTakenDuration, 'isAutomaticallyCreatePillSheet': instance.isAutomaticallyCreatePillSheet, - 'reminderNotificationCustomization': - instance.reminderNotificationCustomization.toJson(), - 'pillSheetAppearanceMode': - _$PillSheetAppearanceModeEnumMap[instance.pillSheetAppearanceMode]!, + 'reminderNotificationCustomization': instance.reminderNotificationCustomization.toJson(), + 'pillSheetAppearanceMode': _$PillSheetAppearanceModeEnumMap[instance.pillSheetAppearanceMode]!, 'timezoneDatabaseName': instance.timezoneDatabaseName, }; diff --git a/lib/entity/user.codegen.freezed.dart b/lib/entity/user.codegen.freezed.dart index c288ca7d64..330998fab7 100644 --- a/lib/entity/user.codegen.freezed.dart +++ b/lib/entity/user.codegen.freezed.dart @@ -24,22 +24,18 @@ mixin _$UserPrivate { Map toJson() => throw _privateConstructorUsedError; @JsonKey(ignore: true) - $UserPrivateCopyWith get copyWith => - throw _privateConstructorUsedError; + $UserPrivateCopyWith get copyWith => throw _privateConstructorUsedError; } /// @nodoc abstract class $UserPrivateCopyWith<$Res> { - factory $UserPrivateCopyWith( - UserPrivate value, $Res Function(UserPrivate) then) = - _$UserPrivateCopyWithImpl<$Res, UserPrivate>; + factory $UserPrivateCopyWith(UserPrivate value, $Res Function(UserPrivate) then) = _$UserPrivateCopyWithImpl<$Res, UserPrivate>; @useResult $Res call({String? fcmToken}); } /// @nodoc -class _$UserPrivateCopyWithImpl<$Res, $Val extends UserPrivate> - implements $UserPrivateCopyWith<$Res> { +class _$UserPrivateCopyWithImpl<$Res, $Val extends UserPrivate> implements $UserPrivateCopyWith<$Res> { _$UserPrivateCopyWithImpl(this._value, this._then); // ignore: unused_field @@ -62,23 +58,16 @@ class _$UserPrivateCopyWithImpl<$Res, $Val extends UserPrivate> } /// @nodoc -abstract class _$$UserPrivateImplCopyWith<$Res> - implements $UserPrivateCopyWith<$Res> { - factory _$$UserPrivateImplCopyWith( - _$UserPrivateImpl value, $Res Function(_$UserPrivateImpl) then) = - __$$UserPrivateImplCopyWithImpl<$Res>; +abstract class _$$UserPrivateImplCopyWith<$Res> implements $UserPrivateCopyWith<$Res> { + factory _$$UserPrivateImplCopyWith(_$UserPrivateImpl value, $Res Function(_$UserPrivateImpl) then) = __$$UserPrivateImplCopyWithImpl<$Res>; @override @useResult $Res call({String? fcmToken}); } /// @nodoc -class __$$UserPrivateImplCopyWithImpl<$Res> - extends _$UserPrivateCopyWithImpl<$Res, _$UserPrivateImpl> - implements _$$UserPrivateImplCopyWith<$Res> { - __$$UserPrivateImplCopyWithImpl( - _$UserPrivateImpl _value, $Res Function(_$UserPrivateImpl) _then) - : super(_value, _then); +class __$$UserPrivateImplCopyWithImpl<$Res> extends _$UserPrivateCopyWithImpl<$Res, _$UserPrivateImpl> implements _$$UserPrivateImplCopyWith<$Res> { + __$$UserPrivateImplCopyWithImpl(_$UserPrivateImpl _value, $Res Function(_$UserPrivateImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @override @@ -99,8 +88,7 @@ class __$$UserPrivateImplCopyWithImpl<$Res> class _$UserPrivateImpl extends _UserPrivate { const _$UserPrivateImpl({this.fcmToken}) : super._(); - factory _$UserPrivateImpl.fromJson(Map json) => - _$$UserPrivateImplFromJson(json); + factory _$UserPrivateImpl.fromJson(Map json) => _$$UserPrivateImplFromJson(json); @override final String? fcmToken; @@ -113,10 +101,7 @@ class _$UserPrivateImpl extends _UserPrivate { @override bool operator ==(Object other) { return identical(this, other) || - (other.runtimeType == runtimeType && - other is _$UserPrivateImpl && - (identical(other.fcmToken, fcmToken) || - other.fcmToken == fcmToken)); + (other.runtimeType == runtimeType && other is _$UserPrivateImpl && (identical(other.fcmToken, fcmToken) || other.fcmToken == fcmToken)); } @JsonKey(ignore: true) @@ -126,8 +111,7 @@ class _$UserPrivateImpl extends _UserPrivate { @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$UserPrivateImplCopyWith<_$UserPrivateImpl> get copyWith => - __$$UserPrivateImplCopyWithImpl<_$UserPrivateImpl>(this, _$identity); + _$$UserPrivateImplCopyWith<_$UserPrivateImpl> get copyWith => __$$UserPrivateImplCopyWithImpl<_$UserPrivateImpl>(this, _$identity); @override Map toJson() { @@ -141,15 +125,13 @@ abstract class _UserPrivate extends UserPrivate { const factory _UserPrivate({final String? fcmToken}) = _$UserPrivateImpl; const _UserPrivate._() : super._(); - factory _UserPrivate.fromJson(Map json) = - _$UserPrivateImpl.fromJson; + factory _UserPrivate.fromJson(Map json) = _$UserPrivateImpl.fromJson; @override String? get fcmToken; @override @JsonKey(ignore: true) - _$$UserPrivateImplCopyWith<_$UserPrivateImpl> get copyWith => - throw _privateConstructorUsedError; + _$$UserPrivateImplCopyWith<_$UserPrivateImpl> get copyWith => throw _privateConstructorUsedError; } User _$UserFromJson(Map json) { @@ -165,26 +147,17 @@ mixin _$User { String? get anonymousUserID => throw _privateConstructorUsedError; List get userDocumentIDSets => throw _privateConstructorUsedError; List get anonymousUserIDSets => throw _privateConstructorUsedError; - List get firebaseCurrentUserIDSets => - throw _privateConstructorUsedError; + List get firebaseCurrentUserIDSets => throw _privateConstructorUsedError; bool get isPremium => throw _privateConstructorUsedError; bool get shouldAskCancelReason => throw _privateConstructorUsedError; bool get analyticsDebugIsEnabled => throw _privateConstructorUsedError; - @JsonKey( - fromJson: TimestampConverter.timestampToDateTime, - toJson: TimestampConverter.dateTimeToTimestamp) + @JsonKey(fromJson: TimestampConverter.timestampToDateTime, toJson: TimestampConverter.dateTimeToTimestamp) DateTime? get beginTrialDate => throw _privateConstructorUsedError; - @JsonKey( - fromJson: TimestampConverter.timestampToDateTime, - toJson: TimestampConverter.dateTimeToTimestamp) + @JsonKey(fromJson: TimestampConverter.timestampToDateTime, toJson: TimestampConverter.dateTimeToTimestamp) DateTime? get trialDeadlineDate => throw _privateConstructorUsedError; - @JsonKey( - fromJson: TimestampConverter.timestampToDateTime, - toJson: TimestampConverter.dateTimeToTimestamp) - DateTime? get discountEntitlementDeadlineDate => - throw _privateConstructorUsedError; - dynamic get appliedShareRewardPremiumTrialCount => - throw _privateConstructorUsedError; + @JsonKey(fromJson: TimestampConverter.timestampToDateTime, toJson: TimestampConverter.dateTimeToTimestamp) + DateTime? get discountEntitlementDeadlineDate => throw _privateConstructorUsedError; + dynamic get appliedShareRewardPremiumTrialCount => throw _privateConstructorUsedError; Map toJson() => throw _privateConstructorUsedError; @JsonKey(ignore: true) @@ -193,8 +166,7 @@ mixin _$User { /// @nodoc abstract class $UserCopyWith<$Res> { - factory $UserCopyWith(User value, $Res Function(User) then) = - _$UserCopyWithImpl<$Res, User>; + factory $UserCopyWith(User value, $Res Function(User) then) = _$UserCopyWithImpl<$Res, User>; @useResult $Res call( {String? id, @@ -207,17 +179,9 @@ abstract class $UserCopyWith<$Res> { bool isPremium, bool shouldAskCancelReason, bool analyticsDebugIsEnabled, - @JsonKey( - fromJson: TimestampConverter.timestampToDateTime, - toJson: TimestampConverter.dateTimeToTimestamp) - DateTime? beginTrialDate, - @JsonKey( - fromJson: TimestampConverter.timestampToDateTime, - toJson: TimestampConverter.dateTimeToTimestamp) - DateTime? trialDeadlineDate, - @JsonKey( - fromJson: TimestampConverter.timestampToDateTime, - toJson: TimestampConverter.dateTimeToTimestamp) + @JsonKey(fromJson: TimestampConverter.timestampToDateTime, toJson: TimestampConverter.dateTimeToTimestamp) DateTime? beginTrialDate, + @JsonKey(fromJson: TimestampConverter.timestampToDateTime, toJson: TimestampConverter.dateTimeToTimestamp) DateTime? trialDeadlineDate, + @JsonKey(fromJson: TimestampConverter.timestampToDateTime, toJson: TimestampConverter.dateTimeToTimestamp) DateTime? discountEntitlementDeadlineDate, dynamic appliedShareRewardPremiumTrialCount}); @@ -225,8 +189,7 @@ abstract class $UserCopyWith<$Res> { } /// @nodoc -class _$UserCopyWithImpl<$Res, $Val extends User> - implements $UserCopyWith<$Res> { +class _$UserCopyWithImpl<$Res, $Val extends User> implements $UserCopyWith<$Res> { _$UserCopyWithImpl(this._value, this._then); // ignore: unused_field @@ -301,13 +264,11 @@ class _$UserCopyWithImpl<$Res, $Val extends User> ? _value.trialDeadlineDate : trialDeadlineDate // ignore: cast_nullable_to_non_nullable as DateTime?, - discountEntitlementDeadlineDate: freezed == - discountEntitlementDeadlineDate + discountEntitlementDeadlineDate: freezed == discountEntitlementDeadlineDate ? _value.discountEntitlementDeadlineDate : discountEntitlementDeadlineDate // ignore: cast_nullable_to_non_nullable as DateTime?, - appliedShareRewardPremiumTrialCount: freezed == - appliedShareRewardPremiumTrialCount + appliedShareRewardPremiumTrialCount: freezed == appliedShareRewardPremiumTrialCount ? _value.appliedShareRewardPremiumTrialCount : appliedShareRewardPremiumTrialCount // ignore: cast_nullable_to_non_nullable as dynamic, @@ -329,9 +290,7 @@ class _$UserCopyWithImpl<$Res, $Val extends User> /// @nodoc abstract class _$$UserImplCopyWith<$Res> implements $UserCopyWith<$Res> { - factory _$$UserImplCopyWith( - _$UserImpl value, $Res Function(_$UserImpl) then) = - __$$UserImplCopyWithImpl<$Res>; + factory _$$UserImplCopyWith(_$UserImpl value, $Res Function(_$UserImpl) then) = __$$UserImplCopyWithImpl<$Res>; @override @useResult $Res call( @@ -345,17 +304,9 @@ abstract class _$$UserImplCopyWith<$Res> implements $UserCopyWith<$Res> { bool isPremium, bool shouldAskCancelReason, bool analyticsDebugIsEnabled, - @JsonKey( - fromJson: TimestampConverter.timestampToDateTime, - toJson: TimestampConverter.dateTimeToTimestamp) - DateTime? beginTrialDate, - @JsonKey( - fromJson: TimestampConverter.timestampToDateTime, - toJson: TimestampConverter.dateTimeToTimestamp) - DateTime? trialDeadlineDate, - @JsonKey( - fromJson: TimestampConverter.timestampToDateTime, - toJson: TimestampConverter.dateTimeToTimestamp) + @JsonKey(fromJson: TimestampConverter.timestampToDateTime, toJson: TimestampConverter.dateTimeToTimestamp) DateTime? beginTrialDate, + @JsonKey(fromJson: TimestampConverter.timestampToDateTime, toJson: TimestampConverter.dateTimeToTimestamp) DateTime? trialDeadlineDate, + @JsonKey(fromJson: TimestampConverter.timestampToDateTime, toJson: TimestampConverter.dateTimeToTimestamp) DateTime? discountEntitlementDeadlineDate, dynamic appliedShareRewardPremiumTrialCount}); @@ -364,11 +315,8 @@ abstract class _$$UserImplCopyWith<$Res> implements $UserCopyWith<$Res> { } /// @nodoc -class __$$UserImplCopyWithImpl<$Res> - extends _$UserCopyWithImpl<$Res, _$UserImpl> - implements _$$UserImplCopyWith<$Res> { - __$$UserImplCopyWithImpl(_$UserImpl _value, $Res Function(_$UserImpl) _then) - : super(_value, _then); +class __$$UserImplCopyWithImpl<$Res> extends _$UserCopyWithImpl<$Res, _$UserImpl> implements _$$UserImplCopyWith<$Res> { + __$$UserImplCopyWithImpl(_$UserImpl _value, $Res Function(_$UserImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @override @@ -437,15 +385,12 @@ class __$$UserImplCopyWithImpl<$Res> ? _value.trialDeadlineDate : trialDeadlineDate // ignore: cast_nullable_to_non_nullable as DateTime?, - discountEntitlementDeadlineDate: freezed == - discountEntitlementDeadlineDate + discountEntitlementDeadlineDate: freezed == discountEntitlementDeadlineDate ? _value.discountEntitlementDeadlineDate : discountEntitlementDeadlineDate // ignore: cast_nullable_to_non_nullable as DateTime?, appliedShareRewardPremiumTrialCount: - freezed == appliedShareRewardPremiumTrialCount - ? _value.appliedShareRewardPremiumTrialCount! - : appliedShareRewardPremiumTrialCount, + freezed == appliedShareRewardPremiumTrialCount ? _value.appliedShareRewardPremiumTrialCount! : appliedShareRewardPremiumTrialCount, )); } } @@ -465,26 +410,16 @@ class _$UserImpl extends _User { this.isPremium = false, this.shouldAskCancelReason = false, this.analyticsDebugIsEnabled = false, - @JsonKey( - fromJson: TimestampConverter.timestampToDateTime, - toJson: TimestampConverter.dateTimeToTimestamp) - this.beginTrialDate, - @JsonKey( - fromJson: TimestampConverter.timestampToDateTime, - toJson: TimestampConverter.dateTimeToTimestamp) - this.trialDeadlineDate, - @JsonKey( - fromJson: TimestampConverter.timestampToDateTime, - toJson: TimestampConverter.dateTimeToTimestamp) - this.discountEntitlementDeadlineDate, + @JsonKey(fromJson: TimestampConverter.timestampToDateTime, toJson: TimestampConverter.dateTimeToTimestamp) this.beginTrialDate, + @JsonKey(fromJson: TimestampConverter.timestampToDateTime, toJson: TimestampConverter.dateTimeToTimestamp) this.trialDeadlineDate, + @JsonKey(fromJson: TimestampConverter.timestampToDateTime, toJson: TimestampConverter.dateTimeToTimestamp) this.discountEntitlementDeadlineDate, this.appliedShareRewardPremiumTrialCount = 0}) : _userDocumentIDSets = userDocumentIDSets, _anonymousUserIDSets = anonymousUserIDSets, _firebaseCurrentUserIDSets = firebaseCurrentUserIDSets, super._(); - factory _$UserImpl.fromJson(Map json) => - _$$UserImplFromJson(json); + factory _$UserImpl.fromJson(Map json) => _$$UserImplFromJson(json); @override final String? id; @@ -499,8 +434,7 @@ class _$UserImpl extends _User { @override @JsonKey() List get userDocumentIDSets { - if (_userDocumentIDSets is EqualUnmodifiableListView) - return _userDocumentIDSets; + if (_userDocumentIDSets is EqualUnmodifiableListView) return _userDocumentIDSets; // ignore: implicit_dynamic_type return EqualUnmodifiableListView(_userDocumentIDSets); } @@ -509,8 +443,7 @@ class _$UserImpl extends _User { @override @JsonKey() List get anonymousUserIDSets { - if (_anonymousUserIDSets is EqualUnmodifiableListView) - return _anonymousUserIDSets; + if (_anonymousUserIDSets is EqualUnmodifiableListView) return _anonymousUserIDSets; // ignore: implicit_dynamic_type return EqualUnmodifiableListView(_anonymousUserIDSets); } @@ -519,8 +452,7 @@ class _$UserImpl extends _User { @override @JsonKey() List get firebaseCurrentUserIDSets { - if (_firebaseCurrentUserIDSets is EqualUnmodifiableListView) - return _firebaseCurrentUserIDSets; + if (_firebaseCurrentUserIDSets is EqualUnmodifiableListView) return _firebaseCurrentUserIDSets; // ignore: implicit_dynamic_type return EqualUnmodifiableListView(_firebaseCurrentUserIDSets); } @@ -535,19 +467,13 @@ class _$UserImpl extends _User { @JsonKey() final bool analyticsDebugIsEnabled; @override - @JsonKey( - fromJson: TimestampConverter.timestampToDateTime, - toJson: TimestampConverter.dateTimeToTimestamp) + @JsonKey(fromJson: TimestampConverter.timestampToDateTime, toJson: TimestampConverter.dateTimeToTimestamp) final DateTime? beginTrialDate; @override - @JsonKey( - fromJson: TimestampConverter.timestampToDateTime, - toJson: TimestampConverter.dateTimeToTimestamp) + @JsonKey(fromJson: TimestampConverter.timestampToDateTime, toJson: TimestampConverter.dateTimeToTimestamp) final DateTime? trialDeadlineDate; @override - @JsonKey( - fromJson: TimestampConverter.timestampToDateTime, - toJson: TimestampConverter.dateTimeToTimestamp) + @JsonKey(fromJson: TimestampConverter.timestampToDateTime, toJson: TimestampConverter.dateTimeToTimestamp) final DateTime? discountEntitlementDeadlineDate; @override @JsonKey() @@ -565,34 +491,19 @@ class _$UserImpl extends _User { other is _$UserImpl && (identical(other.id, id) || other.id == id) && (identical(other.setting, setting) || other.setting == setting) && - (identical(other.userIDWhenCreateUser, userIDWhenCreateUser) || - other.userIDWhenCreateUser == userIDWhenCreateUser) && - (identical(other.anonymousUserID, anonymousUserID) || - other.anonymousUserID == anonymousUserID) && - const DeepCollectionEquality() - .equals(other._userDocumentIDSets, _userDocumentIDSets) && - const DeepCollectionEquality() - .equals(other._anonymousUserIDSets, _anonymousUserIDSets) && - const DeepCollectionEquality().equals( - other._firebaseCurrentUserIDSets, _firebaseCurrentUserIDSets) && - (identical(other.isPremium, isPremium) || - other.isPremium == isPremium) && - (identical(other.shouldAskCancelReason, shouldAskCancelReason) || - other.shouldAskCancelReason == shouldAskCancelReason) && - (identical( - other.analyticsDebugIsEnabled, analyticsDebugIsEnabled) || - other.analyticsDebugIsEnabled == analyticsDebugIsEnabled) && - (identical(other.beginTrialDate, beginTrialDate) || - other.beginTrialDate == beginTrialDate) && - (identical(other.trialDeadlineDate, trialDeadlineDate) || - other.trialDeadlineDate == trialDeadlineDate) && - (identical(other.discountEntitlementDeadlineDate, - discountEntitlementDeadlineDate) || - other.discountEntitlementDeadlineDate == - discountEntitlementDeadlineDate) && - const DeepCollectionEquality().equals( - other.appliedShareRewardPremiumTrialCount, - appliedShareRewardPremiumTrialCount)); + (identical(other.userIDWhenCreateUser, userIDWhenCreateUser) || other.userIDWhenCreateUser == userIDWhenCreateUser) && + (identical(other.anonymousUserID, anonymousUserID) || other.anonymousUserID == anonymousUserID) && + const DeepCollectionEquality().equals(other._userDocumentIDSets, _userDocumentIDSets) && + const DeepCollectionEquality().equals(other._anonymousUserIDSets, _anonymousUserIDSets) && + const DeepCollectionEquality().equals(other._firebaseCurrentUserIDSets, _firebaseCurrentUserIDSets) && + (identical(other.isPremium, isPremium) || other.isPremium == isPremium) && + (identical(other.shouldAskCancelReason, shouldAskCancelReason) || other.shouldAskCancelReason == shouldAskCancelReason) && + (identical(other.analyticsDebugIsEnabled, analyticsDebugIsEnabled) || other.analyticsDebugIsEnabled == analyticsDebugIsEnabled) && + (identical(other.beginTrialDate, beginTrialDate) || other.beginTrialDate == beginTrialDate) && + (identical(other.trialDeadlineDate, trialDeadlineDate) || other.trialDeadlineDate == trialDeadlineDate) && + (identical(other.discountEntitlementDeadlineDate, discountEntitlementDeadlineDate) || + other.discountEntitlementDeadlineDate == discountEntitlementDeadlineDate) && + const DeepCollectionEquality().equals(other.appliedShareRewardPremiumTrialCount, appliedShareRewardPremiumTrialCount)); } @JsonKey(ignore: true) @@ -617,8 +528,7 @@ class _$UserImpl extends _User { @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$UserImplCopyWith<_$UserImpl> get copyWith => - __$$UserImplCopyWithImpl<_$UserImpl>(this, _$identity); + _$$UserImplCopyWith<_$UserImpl> get copyWith => __$$UserImplCopyWithImpl<_$UserImpl>(this, _$identity); @override Map toJson() { @@ -640,17 +550,9 @@ abstract class _User extends User { final bool isPremium, final bool shouldAskCancelReason, final bool analyticsDebugIsEnabled, - @JsonKey( - fromJson: TimestampConverter.timestampToDateTime, - toJson: TimestampConverter.dateTimeToTimestamp) - final DateTime? beginTrialDate, - @JsonKey( - fromJson: TimestampConverter.timestampToDateTime, - toJson: TimestampConverter.dateTimeToTimestamp) - final DateTime? trialDeadlineDate, - @JsonKey( - fromJson: TimestampConverter.timestampToDateTime, - toJson: TimestampConverter.dateTimeToTimestamp) + @JsonKey(fromJson: TimestampConverter.timestampToDateTime, toJson: TimestampConverter.dateTimeToTimestamp) final DateTime? beginTrialDate, + @JsonKey(fromJson: TimestampConverter.timestampToDateTime, toJson: TimestampConverter.dateTimeToTimestamp) final DateTime? trialDeadlineDate, + @JsonKey(fromJson: TimestampConverter.timestampToDateTime, toJson: TimestampConverter.dateTimeToTimestamp) final DateTime? discountEntitlementDeadlineDate, final dynamic appliedShareRewardPremiumTrialCount}) = _$UserImpl; const _User._() : super._(); @@ -679,24 +581,17 @@ abstract class _User extends User { @override bool get analyticsDebugIsEnabled; @override - @JsonKey( - fromJson: TimestampConverter.timestampToDateTime, - toJson: TimestampConverter.dateTimeToTimestamp) + @JsonKey(fromJson: TimestampConverter.timestampToDateTime, toJson: TimestampConverter.dateTimeToTimestamp) DateTime? get beginTrialDate; @override - @JsonKey( - fromJson: TimestampConverter.timestampToDateTime, - toJson: TimestampConverter.dateTimeToTimestamp) + @JsonKey(fromJson: TimestampConverter.timestampToDateTime, toJson: TimestampConverter.dateTimeToTimestamp) DateTime? get trialDeadlineDate; @override - @JsonKey( - fromJson: TimestampConverter.timestampToDateTime, - toJson: TimestampConverter.dateTimeToTimestamp) + @JsonKey(fromJson: TimestampConverter.timestampToDateTime, toJson: TimestampConverter.dateTimeToTimestamp) DateTime? get discountEntitlementDeadlineDate; @override dynamic get appliedShareRewardPremiumTrialCount; @override @JsonKey(ignore: true) - _$$UserImplCopyWith<_$UserImpl> get copyWith => - throw _privateConstructorUsedError; + _$$UserImplCopyWith<_$UserImpl> get copyWith => throw _privateConstructorUsedError; } diff --git a/lib/entity/user.codegen.g.dart b/lib/entity/user.codegen.g.dart index bd03128d0c..0cbac00121 100644 --- a/lib/entity/user.codegen.g.dart +++ b/lib/entity/user.codegen.g.dart @@ -6,52 +6,32 @@ part of 'user.codegen.dart'; // JsonSerializableGenerator // ************************************************************************** -_$UserPrivateImpl _$$UserPrivateImplFromJson(Map json) => - _$UserPrivateImpl( +_$UserPrivateImpl _$$UserPrivateImplFromJson(Map json) => _$UserPrivateImpl( fcmToken: json['fcmToken'] as String?, ); -Map _$$UserPrivateImplToJson(_$UserPrivateImpl instance) => - { +Map _$$UserPrivateImplToJson(_$UserPrivateImpl instance) => { 'fcmToken': instance.fcmToken, }; _$UserImpl _$$UserImplFromJson(Map json) => _$UserImpl( id: json['id'] as String?, - setting: json['settings'] == null - ? null - : Setting.fromJson(json['settings'] as Map), + setting: json['settings'] == null ? null : Setting.fromJson(json['settings'] as Map), userIDWhenCreateUser: json['userIDWhenCreateUser'] as String?, anonymousUserID: json['anonymousUserID'] as String?, - userDocumentIDSets: (json['userDocumentIDSets'] as List?) - ?.map((e) => e as String) - .toList() ?? - const [], - anonymousUserIDSets: (json['anonymousUserIDSets'] as List?) - ?.map((e) => e as String) - .toList() ?? - const [], - firebaseCurrentUserIDSets: - (json['firebaseCurrentUserIDSets'] as List?) - ?.map((e) => e as String) - .toList() ?? - const [], + userDocumentIDSets: (json['userDocumentIDSets'] as List?)?.map((e) => e as String).toList() ?? const [], + anonymousUserIDSets: (json['anonymousUserIDSets'] as List?)?.map((e) => e as String).toList() ?? const [], + firebaseCurrentUserIDSets: (json['firebaseCurrentUserIDSets'] as List?)?.map((e) => e as String).toList() ?? const [], isPremium: json['isPremium'] as bool? ?? false, shouldAskCancelReason: json['shouldAskCancelReason'] as bool? ?? false, - analyticsDebugIsEnabled: - json['analyticsDebugIsEnabled'] as bool? ?? false, - beginTrialDate: TimestampConverter.timestampToDateTime( - json['beginTrialDate'] as Timestamp?), - trialDeadlineDate: TimestampConverter.timestampToDateTime( - json['trialDeadlineDate'] as Timestamp?), - discountEntitlementDeadlineDate: TimestampConverter.timestampToDateTime( - json['discountEntitlementDeadlineDate'] as Timestamp?), - appliedShareRewardPremiumTrialCount: - json['appliedShareRewardPremiumTrialCount'] ?? 0, + analyticsDebugIsEnabled: json['analyticsDebugIsEnabled'] as bool? ?? false, + beginTrialDate: TimestampConverter.timestampToDateTime(json['beginTrialDate'] as Timestamp?), + trialDeadlineDate: TimestampConverter.timestampToDateTime(json['trialDeadlineDate'] as Timestamp?), + discountEntitlementDeadlineDate: TimestampConverter.timestampToDateTime(json['discountEntitlementDeadlineDate'] as Timestamp?), + appliedShareRewardPremiumTrialCount: json['appliedShareRewardPremiumTrialCount'] ?? 0, ); -Map _$$UserImplToJson(_$UserImpl instance) => - { +Map _$$UserImplToJson(_$UserImpl instance) => { 'id': instance.id, 'settings': instance.setting?.toJson(), 'userIDWhenCreateUser': instance.userIDWhenCreateUser, @@ -62,12 +42,8 @@ Map _$$UserImplToJson(_$UserImpl instance) => 'isPremium': instance.isPremium, 'shouldAskCancelReason': instance.shouldAskCancelReason, 'analyticsDebugIsEnabled': instance.analyticsDebugIsEnabled, - 'beginTrialDate': - TimestampConverter.dateTimeToTimestamp(instance.beginTrialDate), - 'trialDeadlineDate': - TimestampConverter.dateTimeToTimestamp(instance.trialDeadlineDate), - 'discountEntitlementDeadlineDate': TimestampConverter.dateTimeToTimestamp( - instance.discountEntitlementDeadlineDate), - 'appliedShareRewardPremiumTrialCount': - instance.appliedShareRewardPremiumTrialCount, + 'beginTrialDate': TimestampConverter.dateTimeToTimestamp(instance.beginTrialDate), + 'trialDeadlineDate': TimestampConverter.dateTimeToTimestamp(instance.trialDeadlineDate), + 'discountEntitlementDeadlineDate': TimestampConverter.dateTimeToTimestamp(instance.discountEntitlementDeadlineDate), + 'appliedShareRewardPremiumTrialCount': instance.appliedShareRewardPremiumTrialCount, }; diff --git a/lib/entity/weekday.dart b/lib/entity/weekday.dart index b8ea8378bd..a9595b553d 100644 --- a/lib/entity/weekday.dart +++ b/lib/entity/weekday.dart @@ -25,8 +25,7 @@ extension WeekdayFunctions on Weekday { } static List weekdaysForFirstWeekday(Weekday firstWeekday) { - return Weekday.values.sublist(firstWeekday.index) - ..addAll(Weekday.values.sublist(0, firstWeekday.index)); + return Weekday.values.sublist(firstWeekday.index)..addAll(Weekday.values.sublist(0, firstWeekday.index)); } String weekdayString() { diff --git a/lib/features/calendar/components/pill_sheet_modified_history/components/core/day.dart b/lib/features/calendar/components/pill_sheet_modified_history/components/core/day.dart index ed1d83cf0f..eb9b513ec6 100644 --- a/lib/features/calendar/components/pill_sheet_modified_history/components/core/day.dart +++ b/lib/features/calendar/components/pill_sheet_modified_history/components/core/day.dart @@ -9,8 +9,7 @@ class Day extends StatelessWidget { const Day({super.key, required this.estimatedEventCausingDate}); int get _day => estimatedEventCausingDate.day; - Weekday get _weekday => - WeekdayFunctions.weekdayFromDate(estimatedEventCausingDate); + Weekday get _weekday => WeekdayFunctions.weekdayFromDate(estimatedEventCausingDate); @override Widget build(BuildContext context) { diff --git a/lib/features/calendar/components/pill_sheet_modified_history/components/core/taken_pill_action_o_list.dart b/lib/features/calendar/components/pill_sheet_modified_history/components/core/taken_pill_action_o_list.dart index b6d2369edc..e9dd73492a 100644 --- a/lib/features/calendar/components/pill_sheet_modified_history/components/core/taken_pill_action_o_list.dart +++ b/lib/features/calendar/components/pill_sheet_modified_history/components/core/taken_pill_action_o_list.dart @@ -23,27 +23,19 @@ class TakenPillActionOList extends StatelessWidget { if (beforePillSheet.groupIndex != afterPillSheet.groupIndex) { return SvgPicture.asset("images/dots.svg"); } - final count = max( - value.afterLastTakenPillNumber - (value.beforeLastTakenPillNumber), 1); + final count = max(value.afterLastTakenPillNumber - (value.beforeLastTakenPillNumber), 1); return Row( mainAxisSize: MainAxisSize.min, mainAxisAlignment: MainAxisAlignment.center, children: List.generate(min(count, 4), (index) { - final inRestDuration = _inRestDuration( - afterPillSheet, value.afterLastTakenPillNumber, index); + final inRestDuration = _inRestDuration(afterPillSheet, value.afterLastTakenPillNumber, index); if (index == 0) { - return inRestDuration - ? SvgPicture.asset("images/dash_o.svg") - : SvgPicture.asset("images/o.svg"); + return inRestDuration ? SvgPicture.asset("images/dash_o.svg") : SvgPicture.asset("images/o.svg"); } else if (index < 3) { return _halfOWidgetWithTransform( - inRestDuration - ? SvgPicture.asset("images/dash_half_o.svg") - : SvgPicture.asset("images/half_o.svg"), - index); + inRestDuration ? SvgPicture.asset("images/dash_half_o.svg") : SvgPicture.asset("images/half_o.svg"), index); } else { - return _dotsWidgetWithTransform( - SvgPicture.asset("images/dots.svg")); + return _dotsWidgetWithTransform(SvgPicture.asset("images/dots.svg")); } }).toList()); } @@ -66,8 +58,7 @@ class TakenPillActionOList extends StatelessWidget { ); } - bool _inRestDuration( - PillSheet afterPillSheet, int afterLastTakenPillNumber, int index) { + bool _inRestDuration(PillSheet afterPillSheet, int afterLastTakenPillNumber, int index) { final pillNumber = afterLastTakenPillNumber - index; return afterPillSheet.pillSheetType.dosingPeriod < pillNumber; } diff --git a/lib/features/calendar/components/pill_sheet_modified_history/components/pill_sheet_modified_history_monthly_header.dart b/lib/features/calendar/components/pill_sheet_modified_history/components/pill_sheet_modified_history_monthly_header.dart index 0479f66e20..585726e7bb 100644 --- a/lib/features/calendar/components/pill_sheet_modified_history/components/pill_sheet_modified_history_monthly_header.dart +++ b/lib/features/calendar/components/pill_sheet_modified_history/components/pill_sheet_modified_history_monthly_header.dart @@ -6,8 +6,7 @@ import 'package:pilll/utils/formatter/date_time_formatter.dart'; class PillSheetModifiedHistoryMonthlyHeader extends StatelessWidget { final DateTime dateTimeOfMonth; - const PillSheetModifiedHistoryMonthlyHeader( - {super.key, required this.dateTimeOfMonth}); + const PillSheetModifiedHistoryMonthlyHeader({super.key, required this.dateTimeOfMonth}); @override Widget build(BuildContext context) { diff --git a/lib/features/diary_post/diary_post_page.dart b/lib/features/diary_post/diary_post_page.dart index 6f9d90e560..bbec1be26f 100644 --- a/lib/features/diary_post/diary_post_page.dart +++ b/lib/features/diary_post/diary_post_page.dart @@ -149,7 +149,6 @@ class DiaryPostPageBody extends HookConsumerWidget { ], ), ), - if (focusNode.hasPrimaryFocus) ...[ KeyboardToolbar( doneButton: AlertButton( diff --git a/lib/features/diary_setting_physical_condtion_detail/state.codegen.freezed.dart b/lib/features/diary_setting_physical_condtion_detail/state.codegen.freezed.dart index a1cbdaff18..c3c6aadc2b 100644 --- a/lib/features/diary_setting_physical_condtion_detail/state.codegen.freezed.dart +++ b/lib/features/diary_setting_physical_condtion_detail/state.codegen.freezed.dart @@ -19,18 +19,14 @@ mixin _$DiarySettingPhysicalConditionDetailState { DiarySetting? get diarySetting => throw _privateConstructorUsedError; @JsonKey(ignore: true) - $DiarySettingPhysicalConditionDetailStateCopyWith< - DiarySettingPhysicalConditionDetailState> - get copyWith => throw _privateConstructorUsedError; + $DiarySettingPhysicalConditionDetailStateCopyWith get copyWith => throw _privateConstructorUsedError; } /// @nodoc abstract class $DiarySettingPhysicalConditionDetailStateCopyWith<$Res> { factory $DiarySettingPhysicalConditionDetailStateCopyWith( - DiarySettingPhysicalConditionDetailState value, - $Res Function(DiarySettingPhysicalConditionDetailState) then) = - _$DiarySettingPhysicalConditionDetailStateCopyWithImpl<$Res, - DiarySettingPhysicalConditionDetailState>; + DiarySettingPhysicalConditionDetailState value, $Res Function(DiarySettingPhysicalConditionDetailState) then) = + _$DiarySettingPhysicalConditionDetailStateCopyWithImpl<$Res, DiarySettingPhysicalConditionDetailState>; @useResult $Res call({DiarySetting? diarySetting}); @@ -38,11 +34,9 @@ abstract class $DiarySettingPhysicalConditionDetailStateCopyWith<$Res> { } /// @nodoc -class _$DiarySettingPhysicalConditionDetailStateCopyWithImpl<$Res, - $Val extends DiarySettingPhysicalConditionDetailState> +class _$DiarySettingPhysicalConditionDetailStateCopyWithImpl<$Res, $Val extends DiarySettingPhysicalConditionDetailState> implements $DiarySettingPhysicalConditionDetailStateCopyWith<$Res> { - _$DiarySettingPhysicalConditionDetailStateCopyWithImpl( - this._value, this._then); + _$DiarySettingPhysicalConditionDetailStateCopyWithImpl(this._value, this._then); // ignore: unused_field final $Val _value; @@ -76,11 +70,9 @@ class _$DiarySettingPhysicalConditionDetailStateCopyWithImpl<$Res, } /// @nodoc -abstract class _$$DiarySettingPhysicalConditionDetailStateImplCopyWith<$Res> - implements $DiarySettingPhysicalConditionDetailStateCopyWith<$Res> { +abstract class _$$DiarySettingPhysicalConditionDetailStateImplCopyWith<$Res> implements $DiarySettingPhysicalConditionDetailStateCopyWith<$Res> { factory _$$DiarySettingPhysicalConditionDetailStateImplCopyWith( - _$DiarySettingPhysicalConditionDetailStateImpl value, - $Res Function(_$DiarySettingPhysicalConditionDetailStateImpl) then) = + _$DiarySettingPhysicalConditionDetailStateImpl value, $Res Function(_$DiarySettingPhysicalConditionDetailStateImpl) then) = __$$DiarySettingPhysicalConditionDetailStateImplCopyWithImpl<$Res>; @override @useResult @@ -92,12 +84,10 @@ abstract class _$$DiarySettingPhysicalConditionDetailStateImplCopyWith<$Res> /// @nodoc class __$$DiarySettingPhysicalConditionDetailStateImplCopyWithImpl<$Res> - extends _$DiarySettingPhysicalConditionDetailStateCopyWithImpl<$Res, - _$DiarySettingPhysicalConditionDetailStateImpl> + extends _$DiarySettingPhysicalConditionDetailStateCopyWithImpl<$Res, _$DiarySettingPhysicalConditionDetailStateImpl> implements _$$DiarySettingPhysicalConditionDetailStateImplCopyWith<$Res> { __$$DiarySettingPhysicalConditionDetailStateImplCopyWithImpl( - _$DiarySettingPhysicalConditionDetailStateImpl _value, - $Res Function(_$DiarySettingPhysicalConditionDetailStateImpl) _then) + _$DiarySettingPhysicalConditionDetailStateImpl _value, $Res Function(_$DiarySettingPhysicalConditionDetailStateImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -116,10 +106,8 @@ class __$$DiarySettingPhysicalConditionDetailStateImplCopyWithImpl<$Res> /// @nodoc -class _$DiarySettingPhysicalConditionDetailStateImpl - extends _DiarySettingPhysicalConditionDetailState { - _$DiarySettingPhysicalConditionDetailStateImpl({required this.diarySetting}) - : super._(); +class _$DiarySettingPhysicalConditionDetailStateImpl extends _DiarySettingPhysicalConditionDetailState { + _$DiarySettingPhysicalConditionDetailStateImpl({required this.diarySetting}) : super._(); @override final DiarySetting? diarySetting; @@ -134,8 +122,7 @@ class _$DiarySettingPhysicalConditionDetailStateImpl return identical(this, other) || (other.runtimeType == runtimeType && other is _$DiarySettingPhysicalConditionDetailStateImpl && - (identical(other.diarySetting, diarySetting) || - other.diarySetting == diarySetting)); + (identical(other.diarySetting, diarySetting) || other.diarySetting == diarySetting)); } @override @@ -144,25 +131,18 @@ class _$DiarySettingPhysicalConditionDetailStateImpl @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$DiarySettingPhysicalConditionDetailStateImplCopyWith< - _$DiarySettingPhysicalConditionDetailStateImpl> - get copyWith => - __$$DiarySettingPhysicalConditionDetailStateImplCopyWithImpl< - _$DiarySettingPhysicalConditionDetailStateImpl>(this, _$identity); + _$$DiarySettingPhysicalConditionDetailStateImplCopyWith<_$DiarySettingPhysicalConditionDetailStateImpl> get copyWith => + __$$DiarySettingPhysicalConditionDetailStateImplCopyWithImpl<_$DiarySettingPhysicalConditionDetailStateImpl>(this, _$identity); } -abstract class _DiarySettingPhysicalConditionDetailState - extends DiarySettingPhysicalConditionDetailState { - factory _DiarySettingPhysicalConditionDetailState( - {required final DiarySetting? diarySetting}) = - _$DiarySettingPhysicalConditionDetailStateImpl; +abstract class _DiarySettingPhysicalConditionDetailState extends DiarySettingPhysicalConditionDetailState { + factory _DiarySettingPhysicalConditionDetailState({required final DiarySetting? diarySetting}) = _$DiarySettingPhysicalConditionDetailStateImpl; _DiarySettingPhysicalConditionDetailState._() : super._(); @override DiarySetting? get diarySetting; @override @JsonKey(ignore: true) - _$$DiarySettingPhysicalConditionDetailStateImplCopyWith< - _$DiarySettingPhysicalConditionDetailStateImpl> - get copyWith => throw _privateConstructorUsedError; + _$$DiarySettingPhysicalConditionDetailStateImplCopyWith<_$DiarySettingPhysicalConditionDetailStateImpl> get copyWith => + throw _privateConstructorUsedError; } diff --git a/lib/features/initial_setting/initial_setting_state.codegen.freezed.dart b/lib/features/initial_setting/initial_setting_state.codegen.freezed.dart index 92a5ca542c..82361e31b9 100644 --- a/lib/features/initial_setting/initial_setting_state.codegen.freezed.dart +++ b/lib/features/initial_setting/initial_setting_state.codegen.freezed.dart @@ -20,24 +20,19 @@ mixin _$InitialSettingTodayPillNumber { int get pillNumberInPillSheet => throw _privateConstructorUsedError; @JsonKey(ignore: true) - $InitialSettingTodayPillNumberCopyWith - get copyWith => throw _privateConstructorUsedError; + $InitialSettingTodayPillNumberCopyWith get copyWith => throw _privateConstructorUsedError; } /// @nodoc abstract class $InitialSettingTodayPillNumberCopyWith<$Res> { - factory $InitialSettingTodayPillNumberCopyWith( - InitialSettingTodayPillNumber value, - $Res Function(InitialSettingTodayPillNumber) then) = - _$InitialSettingTodayPillNumberCopyWithImpl<$Res, - InitialSettingTodayPillNumber>; + factory $InitialSettingTodayPillNumberCopyWith(InitialSettingTodayPillNumber value, $Res Function(InitialSettingTodayPillNumber) then) = + _$InitialSettingTodayPillNumberCopyWithImpl<$Res, InitialSettingTodayPillNumber>; @useResult $Res call({int pageIndex, int pillNumberInPillSheet}); } /// @nodoc -class _$InitialSettingTodayPillNumberCopyWithImpl<$Res, - $Val extends InitialSettingTodayPillNumber> +class _$InitialSettingTodayPillNumberCopyWithImpl<$Res, $Val extends InitialSettingTodayPillNumber> implements $InitialSettingTodayPillNumberCopyWith<$Res> { _$InitialSettingTodayPillNumberCopyWithImpl(this._value, this._then); @@ -66,11 +61,9 @@ class _$InitialSettingTodayPillNumberCopyWithImpl<$Res, } /// @nodoc -abstract class _$$InitialSettingTodayPillNumberImplCopyWith<$Res> - implements $InitialSettingTodayPillNumberCopyWith<$Res> { +abstract class _$$InitialSettingTodayPillNumberImplCopyWith<$Res> implements $InitialSettingTodayPillNumberCopyWith<$Res> { factory _$$InitialSettingTodayPillNumberImplCopyWith( - _$InitialSettingTodayPillNumberImpl value, - $Res Function(_$InitialSettingTodayPillNumberImpl) then) = + _$InitialSettingTodayPillNumberImpl value, $Res Function(_$InitialSettingTodayPillNumberImpl) then) = __$$InitialSettingTodayPillNumberImplCopyWithImpl<$Res>; @override @useResult @@ -79,12 +72,10 @@ abstract class _$$InitialSettingTodayPillNumberImplCopyWith<$Res> /// @nodoc class __$$InitialSettingTodayPillNumberImplCopyWithImpl<$Res> - extends _$InitialSettingTodayPillNumberCopyWithImpl<$Res, - _$InitialSettingTodayPillNumberImpl> + extends _$InitialSettingTodayPillNumberCopyWithImpl<$Res, _$InitialSettingTodayPillNumberImpl> implements _$$InitialSettingTodayPillNumberImplCopyWith<$Res> { __$$InitialSettingTodayPillNumberImplCopyWithImpl( - _$InitialSettingTodayPillNumberImpl _value, - $Res Function(_$InitialSettingTodayPillNumberImpl) _then) + _$InitialSettingTodayPillNumberImpl _value, $Res Function(_$InitialSettingTodayPillNumberImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -108,10 +99,8 @@ class __$$InitialSettingTodayPillNumberImplCopyWithImpl<$Res> /// @nodoc -class _$InitialSettingTodayPillNumberImpl - implements _InitialSettingTodayPillNumber { - const _$InitialSettingTodayPillNumberImpl( - {this.pageIndex = 0, this.pillNumberInPillSheet = 0}); +class _$InitialSettingTodayPillNumberImpl implements _InitialSettingTodayPillNumber { + const _$InitialSettingTodayPillNumberImpl({this.pageIndex = 0, this.pillNumberInPillSheet = 0}); @override @JsonKey() @@ -130,30 +119,22 @@ class _$InitialSettingTodayPillNumberImpl return identical(this, other) || (other.runtimeType == runtimeType && other is _$InitialSettingTodayPillNumberImpl && - (identical(other.pageIndex, pageIndex) || - other.pageIndex == pageIndex) && - (identical(other.pillNumberInPillSheet, pillNumberInPillSheet) || - other.pillNumberInPillSheet == pillNumberInPillSheet)); + (identical(other.pageIndex, pageIndex) || other.pageIndex == pageIndex) && + (identical(other.pillNumberInPillSheet, pillNumberInPillSheet) || other.pillNumberInPillSheet == pillNumberInPillSheet)); } @override - int get hashCode => - Object.hash(runtimeType, pageIndex, pillNumberInPillSheet); + int get hashCode => Object.hash(runtimeType, pageIndex, pillNumberInPillSheet); @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$InitialSettingTodayPillNumberImplCopyWith< - _$InitialSettingTodayPillNumberImpl> - get copyWith => __$$InitialSettingTodayPillNumberImplCopyWithImpl< - _$InitialSettingTodayPillNumberImpl>(this, _$identity); + _$$InitialSettingTodayPillNumberImplCopyWith<_$InitialSettingTodayPillNumberImpl> get copyWith => + __$$InitialSettingTodayPillNumberImplCopyWithImpl<_$InitialSettingTodayPillNumberImpl>(this, _$identity); } -abstract class _InitialSettingTodayPillNumber - implements InitialSettingTodayPillNumber { - const factory _InitialSettingTodayPillNumber( - {final int pageIndex, - final int pillNumberInPillSheet}) = _$InitialSettingTodayPillNumberImpl; +abstract class _InitialSettingTodayPillNumber implements InitialSettingTodayPillNumber { + const factory _InitialSettingTodayPillNumber({final int pageIndex, final int pillNumberInPillSheet}) = _$InitialSettingTodayPillNumberImpl; @override int get pageIndex; @@ -161,16 +142,13 @@ abstract class _InitialSettingTodayPillNumber int get pillNumberInPillSheet; @override @JsonKey(ignore: true) - _$$InitialSettingTodayPillNumberImplCopyWith< - _$InitialSettingTodayPillNumberImpl> - get copyWith => throw _privateConstructorUsedError; + _$$InitialSettingTodayPillNumberImplCopyWith<_$InitialSettingTodayPillNumberImpl> get copyWith => throw _privateConstructorUsedError; } /// @nodoc mixin _$InitialSettingState { List get pillSheetTypes => throw _privateConstructorUsedError; - InitialSettingTodayPillNumber? get todayPillNumber => - throw _privateConstructorUsedError; + InitialSettingTodayPillNumber? get todayPillNumber => throw _privateConstructorUsedError; List get reminderTimes => throw _privateConstructorUsedError; bool get isOnReminder => throw _privateConstructorUsedError; bool get isLoading => throw _privateConstructorUsedError; @@ -178,14 +156,12 @@ mixin _$InitialSettingState { LinkAccountType? get accountType => throw _privateConstructorUsedError; @JsonKey(ignore: true) - $InitialSettingStateCopyWith get copyWith => - throw _privateConstructorUsedError; + $InitialSettingStateCopyWith get copyWith => throw _privateConstructorUsedError; } /// @nodoc abstract class $InitialSettingStateCopyWith<$Res> { - factory $InitialSettingStateCopyWith( - InitialSettingState value, $Res Function(InitialSettingState) then) = + factory $InitialSettingStateCopyWith(InitialSettingState value, $Res Function(InitialSettingState) then) = _$InitialSettingStateCopyWithImpl<$Res, InitialSettingState>; @useResult $Res call( @@ -201,8 +177,7 @@ abstract class $InitialSettingStateCopyWith<$Res> { } /// @nodoc -class _$InitialSettingStateCopyWithImpl<$Res, $Val extends InitialSettingState> - implements $InitialSettingStateCopyWith<$Res> { +class _$InitialSettingStateCopyWithImpl<$Res, $Val extends InitialSettingState> implements $InitialSettingStateCopyWith<$Res> { _$InitialSettingStateCopyWithImpl(this._value, this._then); // ignore: unused_field @@ -260,18 +235,15 @@ class _$InitialSettingStateCopyWithImpl<$Res, $Val extends InitialSettingState> return null; } - return $InitialSettingTodayPillNumberCopyWith<$Res>(_value.todayPillNumber!, - (value) { + return $InitialSettingTodayPillNumberCopyWith<$Res>(_value.todayPillNumber!, (value) { return _then(_value.copyWith(todayPillNumber: value) as $Val); }); } } /// @nodoc -abstract class _$$InitialSettingStateImplCopyWith<$Res> - implements $InitialSettingStateCopyWith<$Res> { - factory _$$InitialSettingStateImplCopyWith(_$InitialSettingStateImpl value, - $Res Function(_$InitialSettingStateImpl) then) = +abstract class _$$InitialSettingStateImplCopyWith<$Res> implements $InitialSettingStateCopyWith<$Res> { + factory _$$InitialSettingStateImplCopyWith(_$InitialSettingStateImpl value, $Res Function(_$InitialSettingStateImpl) then) = __$$InitialSettingStateImplCopyWithImpl<$Res>; @override @useResult @@ -289,12 +261,9 @@ abstract class _$$InitialSettingStateImplCopyWith<$Res> } /// @nodoc -class __$$InitialSettingStateImplCopyWithImpl<$Res> - extends _$InitialSettingStateCopyWithImpl<$Res, _$InitialSettingStateImpl> +class __$$InitialSettingStateImplCopyWithImpl<$Res> extends _$InitialSettingStateCopyWithImpl<$Res, _$InitialSettingStateImpl> implements _$$InitialSettingStateImplCopyWith<$Res> { - __$$InitialSettingStateImplCopyWithImpl(_$InitialSettingStateImpl _value, - $Res Function(_$InitialSettingStateImpl) _then) - : super(_value, _then); + __$$InitialSettingStateImplCopyWithImpl(_$InitialSettingStateImpl _value, $Res Function(_$InitialSettingStateImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @override @@ -396,39 +365,24 @@ class _$InitialSettingStateImpl extends _InitialSettingState { return identical(this, other) || (other.runtimeType == runtimeType && other is _$InitialSettingStateImpl && - const DeepCollectionEquality() - .equals(other._pillSheetTypes, _pillSheetTypes) && - (identical(other.todayPillNumber, todayPillNumber) || - other.todayPillNumber == todayPillNumber) && - const DeepCollectionEquality() - .equals(other._reminderTimes, _reminderTimes) && - (identical(other.isOnReminder, isOnReminder) || - other.isOnReminder == isOnReminder) && - (identical(other.isLoading, isLoading) || - other.isLoading == isLoading) && - (identical(other.settingIsExist, settingIsExist) || - other.settingIsExist == settingIsExist) && - (identical(other.accountType, accountType) || - other.accountType == accountType)); + const DeepCollectionEquality().equals(other._pillSheetTypes, _pillSheetTypes) && + (identical(other.todayPillNumber, todayPillNumber) || other.todayPillNumber == todayPillNumber) && + const DeepCollectionEquality().equals(other._reminderTimes, _reminderTimes) && + (identical(other.isOnReminder, isOnReminder) || other.isOnReminder == isOnReminder) && + (identical(other.isLoading, isLoading) || other.isLoading == isLoading) && + (identical(other.settingIsExist, settingIsExist) || other.settingIsExist == settingIsExist) && + (identical(other.accountType, accountType) || other.accountType == accountType)); } @override - int get hashCode => Object.hash( - runtimeType, - const DeepCollectionEquality().hash(_pillSheetTypes), - todayPillNumber, - const DeepCollectionEquality().hash(_reminderTimes), - isOnReminder, - isLoading, - settingIsExist, - accountType); + int get hashCode => Object.hash(runtimeType, const DeepCollectionEquality().hash(_pillSheetTypes), todayPillNumber, + const DeepCollectionEquality().hash(_reminderTimes), isOnReminder, isLoading, settingIsExist, accountType); @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') _$$InitialSettingStateImplCopyWith<_$InitialSettingStateImpl> get copyWith => - __$$InitialSettingStateImplCopyWithImpl<_$InitialSettingStateImpl>( - this, _$identity); + __$$InitialSettingStateImplCopyWithImpl<_$InitialSettingStateImpl>(this, _$identity); } abstract class _InitialSettingState extends InitialSettingState { @@ -458,6 +412,5 @@ abstract class _InitialSettingState extends InitialSettingState { LinkAccountType? get accountType; @override @JsonKey(ignore: true) - _$$InitialSettingStateImplCopyWith<_$InitialSettingStateImpl> get copyWith => - throw _privateConstructorUsedError; + _$$InitialSettingStateImplCopyWith<_$InitialSettingStateImpl> get copyWith => throw _privateConstructorUsedError; } diff --git a/lib/features/menstruation/menstruation_card_state.codegen.freezed.dart b/lib/features/menstruation/menstruation_card_state.codegen.freezed.dart index 7307a1a6aa..ca88eed624 100644 --- a/lib/features/menstruation/menstruation_card_state.codegen.freezed.dart +++ b/lib/features/menstruation/menstruation_card_state.codegen.freezed.dart @@ -21,23 +21,19 @@ mixin _$MenstruationCardState { String get countdownString => throw _privateConstructorUsedError; @JsonKey(ignore: true) - $MenstruationCardStateCopyWith get copyWith => - throw _privateConstructorUsedError; + $MenstruationCardStateCopyWith get copyWith => throw _privateConstructorUsedError; } /// @nodoc abstract class $MenstruationCardStateCopyWith<$Res> { - factory $MenstruationCardStateCopyWith(MenstruationCardState value, - $Res Function(MenstruationCardState) then) = + factory $MenstruationCardStateCopyWith(MenstruationCardState value, $Res Function(MenstruationCardState) then) = _$MenstruationCardStateCopyWithImpl<$Res, MenstruationCardState>; @useResult $Res call({String title, DateTime scheduleDate, String countdownString}); } /// @nodoc -class _$MenstruationCardStateCopyWithImpl<$Res, - $Val extends MenstruationCardState> - implements $MenstruationCardStateCopyWith<$Res> { +class _$MenstruationCardStateCopyWithImpl<$Res, $Val extends MenstruationCardState> implements $MenstruationCardStateCopyWith<$Res> { _$MenstruationCardStateCopyWithImpl(this._value, this._then); // ignore: unused_field @@ -70,11 +66,8 @@ class _$MenstruationCardStateCopyWithImpl<$Res, } /// @nodoc -abstract class _$$MenstruationCardStateImplCopyWith<$Res> - implements $MenstruationCardStateCopyWith<$Res> { - factory _$$MenstruationCardStateImplCopyWith( - _$MenstruationCardStateImpl value, - $Res Function(_$MenstruationCardStateImpl) then) = +abstract class _$$MenstruationCardStateImplCopyWith<$Res> implements $MenstruationCardStateCopyWith<$Res> { + factory _$$MenstruationCardStateImplCopyWith(_$MenstruationCardStateImpl value, $Res Function(_$MenstruationCardStateImpl) then) = __$$MenstruationCardStateImplCopyWithImpl<$Res>; @override @useResult @@ -82,12 +75,9 @@ abstract class _$$MenstruationCardStateImplCopyWith<$Res> } /// @nodoc -class __$$MenstruationCardStateImplCopyWithImpl<$Res> - extends _$MenstruationCardStateCopyWithImpl<$Res, - _$MenstruationCardStateImpl> +class __$$MenstruationCardStateImplCopyWithImpl<$Res> extends _$MenstruationCardStateCopyWithImpl<$Res, _$MenstruationCardStateImpl> implements _$$MenstruationCardStateImplCopyWith<$Res> { - __$$MenstruationCardStateImplCopyWithImpl(_$MenstruationCardStateImpl _value, - $Res Function(_$MenstruationCardStateImpl) _then) + __$$MenstruationCardStateImplCopyWithImpl(_$MenstruationCardStateImpl _value, $Res Function(_$MenstruationCardStateImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -117,11 +107,7 @@ class __$$MenstruationCardStateImplCopyWithImpl<$Res> /// @nodoc class _$MenstruationCardStateImpl extends _MenstruationCardState { - const _$MenstruationCardStateImpl( - {required this.title, - required this.scheduleDate, - required this.countdownString}) - : super._(); + const _$MenstruationCardStateImpl({required this.title, required this.scheduleDate, required this.countdownString}) : super._(); @override final String title; @@ -141,29 +127,23 @@ class _$MenstruationCardStateImpl extends _MenstruationCardState { (other.runtimeType == runtimeType && other is _$MenstruationCardStateImpl && (identical(other.title, title) || other.title == title) && - (identical(other.scheduleDate, scheduleDate) || - other.scheduleDate == scheduleDate) && - (identical(other.countdownString, countdownString) || - other.countdownString == countdownString)); + (identical(other.scheduleDate, scheduleDate) || other.scheduleDate == scheduleDate) && + (identical(other.countdownString, countdownString) || other.countdownString == countdownString)); } @override - int get hashCode => - Object.hash(runtimeType, title, scheduleDate, countdownString); + int get hashCode => Object.hash(runtimeType, title, scheduleDate, countdownString); @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$MenstruationCardStateImplCopyWith<_$MenstruationCardStateImpl> - get copyWith => __$$MenstruationCardStateImplCopyWithImpl< - _$MenstruationCardStateImpl>(this, _$identity); + _$$MenstruationCardStateImplCopyWith<_$MenstruationCardStateImpl> get copyWith => + __$$MenstruationCardStateImplCopyWithImpl<_$MenstruationCardStateImpl>(this, _$identity); } abstract class _MenstruationCardState extends MenstruationCardState { - const factory _MenstruationCardState( - {required final String title, - required final DateTime scheduleDate, - required final String countdownString}) = _$MenstruationCardStateImpl; + const factory _MenstruationCardState({required final String title, required final DateTime scheduleDate, required final String countdownString}) = + _$MenstruationCardStateImpl; const _MenstruationCardState._() : super._(); @override @@ -174,6 +154,5 @@ abstract class _MenstruationCardState extends MenstruationCardState { String get countdownString; @override @JsonKey(ignore: true) - _$$MenstruationCardStateImplCopyWith<_$MenstruationCardStateImpl> - get copyWith => throw _privateConstructorUsedError; + _$$MenstruationCardStateImplCopyWith<_$MenstruationCardStateImpl> get copyWith => throw _privateConstructorUsedError; } diff --git a/lib/features/premium_introduction/util/discount_deadline.g.dart b/lib/features/premium_introduction/util/discount_deadline.g.dart index 433cc5188c..8fad9d2cff 100644 --- a/lib/features/premium_introduction/util/discount_deadline.g.dart +++ b/lib/features/premium_introduction/util/discount_deadline.g.dart @@ -6,8 +6,7 @@ part of 'discount_deadline.dart'; // RiverpodGenerator // ************************************************************************** -String _$isOverDiscountDeadlineHash() => - r'4336d52719c10c6d3e9acc171f33f9ebc744976b'; +String _$isOverDiscountDeadlineHash() => r'4336d52719c10c6d3e9acc171f33f9ebc744976b'; /// Copied from Dart SDK class _SystemHash { @@ -65,8 +64,7 @@ class IsOverDiscountDeadlineFamily extends Family { static const Iterable? _allTransitiveDependencies = null; @override - Iterable? get allTransitiveDependencies => - _allTransitiveDependencies; + Iterable? get allTransitiveDependencies => _allTransitiveDependencies; @override String? get name => r'isOverDiscountDeadlineProvider'; @@ -84,13 +82,9 @@ class IsOverDiscountDeadlineProvider extends AutoDisposeProvider { ), from: isOverDiscountDeadlineProvider, name: r'isOverDiscountDeadlineProvider', - debugGetCreateSourceHash: - const bool.fromEnvironment('dart.vm.product') - ? null - : _$isOverDiscountDeadlineHash, + debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product') ? null : _$isOverDiscountDeadlineHash, dependencies: IsOverDiscountDeadlineFamily._dependencies, - allTransitiveDependencies: - IsOverDiscountDeadlineFamily._allTransitiveDependencies, + allTransitiveDependencies: IsOverDiscountDeadlineFamily._allTransitiveDependencies, discountEntitlementDeadlineDate: discountEntitlementDeadlineDate, ); @@ -131,9 +125,7 @@ class IsOverDiscountDeadlineProvider extends AutoDisposeProvider { @override bool operator ==(Object other) { - return other is IsOverDiscountDeadlineProvider && - other.discountEntitlementDeadlineDate == - discountEntitlementDeadlineDate; + return other is IsOverDiscountDeadlineProvider && other.discountEntitlementDeadlineDate == discountEntitlementDeadlineDate; } @override @@ -150,23 +142,18 @@ mixin IsOverDiscountDeadlineRef on AutoDisposeProviderRef { DateTime? get discountEntitlementDeadlineDate; } -class _IsOverDiscountDeadlineProviderElement - extends AutoDisposeProviderElement with IsOverDiscountDeadlineRef { +class _IsOverDiscountDeadlineProviderElement extends AutoDisposeProviderElement with IsOverDiscountDeadlineRef { _IsOverDiscountDeadlineProviderElement(super.provider); @override - DateTime? get discountEntitlementDeadlineDate => - (origin as IsOverDiscountDeadlineProvider) - .discountEntitlementDeadlineDate; + DateTime? get discountEntitlementDeadlineDate => (origin as IsOverDiscountDeadlineProvider).discountEntitlementDeadlineDate; } -String _$hiddenCountdownDiscountDeadlineHash() => - r'b60536a8c5f8ee430f25d88781c84c3b4c381b21'; +String _$hiddenCountdownDiscountDeadlineHash() => r'b60536a8c5f8ee430f25d88781c84c3b4c381b21'; /// See also [hiddenCountdownDiscountDeadline]. @ProviderFor(hiddenCountdownDiscountDeadline) -const hiddenCountdownDiscountDeadlineProvider = - HiddenCountdownDiscountDeadlineFamily(); +const hiddenCountdownDiscountDeadlineProvider = HiddenCountdownDiscountDeadlineFamily(); /// See also [hiddenCountdownDiscountDeadline]. class HiddenCountdownDiscountDeadlineFamily extends Family { @@ -191,30 +178,25 @@ class HiddenCountdownDiscountDeadlineFamily extends Family { ); } - static final Iterable _dependencies = [ - remoteConfigParameterProvider - ]; + static final Iterable _dependencies = [remoteConfigParameterProvider]; @override Iterable? get dependencies => _dependencies; - static final Iterable _allTransitiveDependencies = - { + static final Iterable _allTransitiveDependencies = { remoteConfigParameterProvider, ...?remoteConfigParameterProvider.allTransitiveDependencies }; @override - Iterable? get allTransitiveDependencies => - _allTransitiveDependencies; + Iterable? get allTransitiveDependencies => _allTransitiveDependencies; @override String? get name => r'hiddenCountdownDiscountDeadlineProvider'; } /// See also [hiddenCountdownDiscountDeadline]. -class HiddenCountdownDiscountDeadlineProvider - extends AutoDisposeProvider { +class HiddenCountdownDiscountDeadlineProvider extends AutoDisposeProvider { /// See also [hiddenCountdownDiscountDeadline]. HiddenCountdownDiscountDeadlineProvider({ required DateTime? discountEntitlementDeadlineDate, @@ -225,13 +207,9 @@ class HiddenCountdownDiscountDeadlineProvider ), from: hiddenCountdownDiscountDeadlineProvider, name: r'hiddenCountdownDiscountDeadlineProvider', - debugGetCreateSourceHash: - const bool.fromEnvironment('dart.vm.product') - ? null - : _$hiddenCountdownDiscountDeadlineHash, + debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product') ? null : _$hiddenCountdownDiscountDeadlineHash, dependencies: HiddenCountdownDiscountDeadlineFamily._dependencies, - allTransitiveDependencies: - HiddenCountdownDiscountDeadlineFamily._allTransitiveDependencies, + allTransitiveDependencies: HiddenCountdownDiscountDeadlineFamily._allTransitiveDependencies, discountEntitlementDeadlineDate: discountEntitlementDeadlineDate, ); @@ -272,9 +250,7 @@ class HiddenCountdownDiscountDeadlineProvider @override bool operator ==(Object other) { - return other is HiddenCountdownDiscountDeadlineProvider && - other.discountEntitlementDeadlineDate == - discountEntitlementDeadlineDate; + return other is HiddenCountdownDiscountDeadlineProvider && other.discountEntitlementDeadlineDate == discountEntitlementDeadlineDate; } @override @@ -291,24 +267,18 @@ mixin HiddenCountdownDiscountDeadlineRef on AutoDisposeProviderRef { DateTime? get discountEntitlementDeadlineDate; } -class _HiddenCountdownDiscountDeadlineProviderElement - extends AutoDisposeProviderElement - with HiddenCountdownDiscountDeadlineRef { +class _HiddenCountdownDiscountDeadlineProviderElement extends AutoDisposeProviderElement with HiddenCountdownDiscountDeadlineRef { _HiddenCountdownDiscountDeadlineProviderElement(super.provider); @override - DateTime? get discountEntitlementDeadlineDate => - (origin as HiddenCountdownDiscountDeadlineProvider) - .discountEntitlementDeadlineDate; + DateTime? get discountEntitlementDeadlineDate => (origin as HiddenCountdownDiscountDeadlineProvider).discountEntitlementDeadlineDate; } -String _$durationToDiscountPriceDeadlineHash() => - r'cf08e12e1dea3d5475632bc452d12a78aec274b7'; +String _$durationToDiscountPriceDeadlineHash() => r'cf08e12e1dea3d5475632bc452d12a78aec274b7'; /// See also [durationToDiscountPriceDeadline]. @ProviderFor(durationToDiscountPriceDeadline) -const durationToDiscountPriceDeadlineProvider = - DurationToDiscountPriceDeadlineFamily(); +const durationToDiscountPriceDeadlineProvider = DurationToDiscountPriceDeadlineFamily(); /// See also [durationToDiscountPriceDeadline]. class DurationToDiscountPriceDeadlineFamily extends Family { @@ -341,16 +311,14 @@ class DurationToDiscountPriceDeadlineFamily extends Family { static const Iterable? _allTransitiveDependencies = null; @override - Iterable? get allTransitiveDependencies => - _allTransitiveDependencies; + Iterable? get allTransitiveDependencies => _allTransitiveDependencies; @override String? get name => r'durationToDiscountPriceDeadlineProvider'; } /// See also [durationToDiscountPriceDeadline]. -class DurationToDiscountPriceDeadlineProvider - extends AutoDisposeProvider { +class DurationToDiscountPriceDeadlineProvider extends AutoDisposeProvider { /// See also [durationToDiscountPriceDeadline]. DurationToDiscountPriceDeadlineProvider({ required DateTime discountEntitlementDeadlineDate, @@ -361,13 +329,9 @@ class DurationToDiscountPriceDeadlineProvider ), from: durationToDiscountPriceDeadlineProvider, name: r'durationToDiscountPriceDeadlineProvider', - debugGetCreateSourceHash: - const bool.fromEnvironment('dart.vm.product') - ? null - : _$durationToDiscountPriceDeadlineHash, + debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product') ? null : _$durationToDiscountPriceDeadlineHash, dependencies: DurationToDiscountPriceDeadlineFamily._dependencies, - allTransitiveDependencies: - DurationToDiscountPriceDeadlineFamily._allTransitiveDependencies, + allTransitiveDependencies: DurationToDiscountPriceDeadlineFamily._allTransitiveDependencies, discountEntitlementDeadlineDate: discountEntitlementDeadlineDate, ); @@ -408,9 +372,7 @@ class DurationToDiscountPriceDeadlineProvider @override bool operator ==(Object other) { - return other is DurationToDiscountPriceDeadlineProvider && - other.discountEntitlementDeadlineDate == - discountEntitlementDeadlineDate; + return other is DurationToDiscountPriceDeadlineProvider && other.discountEntitlementDeadlineDate == discountEntitlementDeadlineDate; } @override @@ -427,15 +389,11 @@ mixin DurationToDiscountPriceDeadlineRef on AutoDisposeProviderRef { DateTime get discountEntitlementDeadlineDate; } -class _DurationToDiscountPriceDeadlineProviderElement - extends AutoDisposeProviderElement - with DurationToDiscountPriceDeadlineRef { +class _DurationToDiscountPriceDeadlineProviderElement extends AutoDisposeProviderElement with DurationToDiscountPriceDeadlineRef { _DurationToDiscountPriceDeadlineProviderElement(super.provider); @override - DateTime get discountEntitlementDeadlineDate => - (origin as DurationToDiscountPriceDeadlineProvider) - .discountEntitlementDeadlineDate; + DateTime get discountEntitlementDeadlineDate => (origin as DurationToDiscountPriceDeadlineProvider).discountEntitlementDeadlineDate; } // ignore_for_file: type=lint // ignore_for_file: subtype_of_sealed_class, invalid_use_of_internal_member, invalid_use_of_visible_for_testing_member diff --git a/lib/features/record/components/setting/button.dart b/lib/features/record/components/setting/button.dart index c82974991d..43fc673103 100644 --- a/lib/features/record/components/setting/button.dart +++ b/lib/features/record/components/setting/button.dart @@ -39,8 +39,8 @@ class RecordPagePillSheetSettingButton extends StatelessWidget { ); }, style: ButtonStyle( - backgroundColor: MaterialStateProperty.all(TextColor.white), - shape: MaterialStateProperty.all( + backgroundColor: WidgetStateProperty.all(TextColor.white), + shape: WidgetStateProperty.all( RoundedRectangleBorder( borderRadius: BorderRadius.circular(8), side: const BorderSide( diff --git a/lib/features/root/resolver/firebase_auth_resolver.dart b/lib/features/root/resolver/firebase_auth_resolver.dart index 2fac46a77e..0e603196de 100644 --- a/lib/features/root/resolver/firebase_auth_resolver.dart +++ b/lib/features/root/resolver/firebase_auth_resolver.dart @@ -35,7 +35,7 @@ class FirebaseAuthResolver extends HookConsumerWidget { class _FirebaseAuthSignInResolver extends HookConsumerWidget { final Widget Function(BuildContext, User) builder; - const _FirebaseAuthSignInResolver({super.key, required this.builder}); + const _FirebaseAuthSignInResolver({required this.builder}); @override Widget build(BuildContext context, WidgetRef ref) { diff --git a/lib/features/schedule_post/schedule_post_page.dart b/lib/features/schedule_post/schedule_post_page.dart index aed21309cc..5d5ffbfbf3 100644 --- a/lib/features/schedule_post/schedule_post_page.dart +++ b/lib/features/schedule_post/schedule_post_page.dart @@ -152,7 +152,6 @@ class _SchedulePostPage extends HookConsumerWidget { ), ), ], - const Spacer(), if (date.date().isAfter(today())) ...[ PrimaryButton( diff --git a/lib/features/sign_in/sign_in_sheet.dart b/lib/features/sign_in/sign_in_sheet.dart index 1fafca2a5f..25feb422e2 100644 --- a/lib/features/sign_in/sign_in_sheet.dart +++ b/lib/features/sign_in/sign_in_sheet.dart @@ -91,8 +91,8 @@ class SignInSheet extends HookConsumerWidget { ) { return OutlinedButton( style: ButtonStyle( - backgroundColor: MaterialStateProperty.all(PilllColors.appleBlack), - shape: MaterialStateProperty.all( + backgroundColor: WidgetStateProperty.all(PilllColors.appleBlack), + shape: WidgetStateProperty.all( RoundedRectangleBorder( borderRadius: BorderRadius.circular(6), ), @@ -153,8 +153,8 @@ class SignInSheet extends HookConsumerWidget { ) { return OutlinedButton( style: ButtonStyle( - backgroundColor: MaterialStateProperty.all(Colors.white), - shape: MaterialStateProperty.all( + backgroundColor: WidgetStateProperty.all(Colors.white), + shape: WidgetStateProperty.all( RoundedRectangleBorder( side: const BorderSide(color: PilllColors.primary), borderRadius: BorderRadius.circular(6), diff --git a/lib/native/legacy.dart b/lib/native/legacy.dart index dc9f5394f1..6a9673b7ea 100644 --- a/lib/native/legacy.dart +++ b/lib/native/legacy.dart @@ -18,8 +18,7 @@ Future salvagedOldStartTakenDate(dynamic arguments) async { return Future.value(); } - final salvagedOldStartTakenDateRawValue = - typedDic["salvagedOldStartTakenDate"]; + final salvagedOldStartTakenDateRawValue = typedDic["salvagedOldStartTakenDate"]; if (salvagedOldStartTakenDateRawValue == null) { return Future.value(); } @@ -33,14 +32,11 @@ Future salvagedOldStartTakenDate(dynamic arguments) async { if (!salvagedOldLastTakenDateRawValue.contains("/")) { return Future.value(); } - final formattedStartTakenDate = - salvagedOldStartTakenDateRawValue.replaceAll("/", "-"); - final formattedSalvagedOldLastTakenDate = - salvagedOldLastTakenDateRawValue.replaceAll("/", "-"); + final formattedStartTakenDate = salvagedOldStartTakenDateRawValue.replaceAll("/", "-"); + final formattedSalvagedOldLastTakenDate = salvagedOldLastTakenDateRawValue.replaceAll("/", "-"); return SharedPreferences.getInstance().then((storage) { storage.setString("salvagedOldStartTakenDate", formattedStartTakenDate); - storage.setString( - "salvagedOldLastTakenDate", formattedSalvagedOldLastTakenDate); + storage.setString("salvagedOldLastTakenDate", formattedSalvagedOldLastTakenDate); }); } diff --git a/lib/provider/auth.g.dart b/lib/provider/auth.g.dart index f985e80c8e..86e34ec090 100644 --- a/lib/provider/auth.g.dart +++ b/lib/provider/auth.g.dart @@ -13,9 +13,7 @@ String _$firebaseUserStateHash() => r'c50e10f43818ea992e82df756275ee8f6fcf5b73'; final firebaseUserStateProvider = StreamProvider.internal( firebaseUserState, name: r'firebaseUserStateProvider', - debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product') - ? null - : _$firebaseUserStateHash, + debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product') ? null : _$firebaseUserStateHash, dependencies: const [], allTransitiveDependencies: const {}, ); diff --git a/lib/provider/database.g.dart b/lib/provider/database.g.dart index 7f3a698981..cbbc6947ea 100644 --- a/lib/provider/database.g.dart +++ b/lib/provider/database.g.dart @@ -13,13 +13,9 @@ String _$databaseHash() => r'53bd867abd95fdb4edf15dcc60ae4af5424e11e2'; final databaseProvider = Provider.internal( database, name: r'databaseProvider', - debugGetCreateSourceHash: - const bool.fromEnvironment('dart.vm.product') ? null : _$databaseHash, + debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product') ? null : _$databaseHash, dependencies: [firebaseUserStateProvider], - allTransitiveDependencies: { - firebaseUserStateProvider, - ...?firebaseUserStateProvider.allTransitiveDependencies - }, + allTransitiveDependencies: {firebaseUserStateProvider, ...?firebaseUserStateProvider.allTransitiveDependencies}, ); typedef DatabaseRef = ProviderRef; diff --git a/lib/provider/pill_sheet_group.g.dart b/lib/provider/pill_sheet_group.g.dart index 35a11de948..f2f9a0f429 100644 --- a/lib/provider/pill_sheet_group.g.dart +++ b/lib/provider/pill_sheet_group.g.dart @@ -10,98 +10,64 @@ String _$activePillSheetHash() => r'd97b98bec663ae25286aba1eed3305df7766dd7c'; /// See also [activePillSheet]. @ProviderFor(activePillSheet) -final activePillSheetProvider = - AutoDisposeProvider>.internal( +final activePillSheetProvider = AutoDisposeProvider>.internal( activePillSheet, name: r'activePillSheetProvider', - debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product') - ? null - : _$activePillSheetHash, + debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product') ? null : _$activePillSheetHash, dependencies: [latestPillSheetGroupProvider], - allTransitiveDependencies: { - latestPillSheetGroupProvider, - ...?latestPillSheetGroupProvider.allTransitiveDependencies - }, + allTransitiveDependencies: {latestPillSheetGroupProvider, ...?latestPillSheetGroupProvider.allTransitiveDependencies}, ); typedef ActivePillSheetRef = AutoDisposeProviderRef>; -String _$latestPillSheetGroupHash() => - r'adbedcc318008da31341d1d1f7484b1594464365'; +String _$latestPillSheetGroupHash() => r'adbedcc318008da31341d1d1f7484b1594464365'; /// See also [latestPillSheetGroup]. @ProviderFor(latestPillSheetGroup) -final latestPillSheetGroupProvider = - AutoDisposeStreamProvider.internal( +final latestPillSheetGroupProvider = AutoDisposeStreamProvider.internal( latestPillSheetGroup, name: r'latestPillSheetGroupProvider', - debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product') - ? null - : _$latestPillSheetGroupHash, + debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product') ? null : _$latestPillSheetGroupHash, dependencies: [databaseProvider], - allTransitiveDependencies: { - databaseProvider, - ...?databaseProvider.allTransitiveDependencies - }, + allTransitiveDependencies: {databaseProvider, ...?databaseProvider.allTransitiveDependencies}, ); typedef LatestPillSheetGroupRef = AutoDisposeStreamProviderRef; -String _$beforePillSheetGroupHash() => - r'8cd3b068ebd5024ff92e229b4f1620a5a621d11f'; +String _$beforePillSheetGroupHash() => r'8cd3b068ebd5024ff92e229b4f1620a5a621d11f'; /// See also [beforePillSheetGroup]. @ProviderFor(beforePillSheetGroup) -final beforePillSheetGroupProvider = - AutoDisposeFutureProvider.internal( +final beforePillSheetGroupProvider = AutoDisposeFutureProvider.internal( beforePillSheetGroup, name: r'beforePillSheetGroupProvider', - debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product') - ? null - : _$beforePillSheetGroupHash, + debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product') ? null : _$beforePillSheetGroupHash, dependencies: [databaseProvider], - allTransitiveDependencies: { - databaseProvider, - ...?databaseProvider.allTransitiveDependencies - }, + allTransitiveDependencies: {databaseProvider, ...?databaseProvider.allTransitiveDependencies}, ); typedef BeforePillSheetGroupRef = AutoDisposeFutureProviderRef; -String _$batchSetPillSheetGroupHash() => - r'69769ffb3eb87ea3fe0d7b0eada4f447fa9fd0d4'; +String _$batchSetPillSheetGroupHash() => r'69769ffb3eb87ea3fe0d7b0eada4f447fa9fd0d4'; /// See also [batchSetPillSheetGroup]. @ProviderFor(batchSetPillSheetGroup) -final batchSetPillSheetGroupProvider = - AutoDisposeProvider.internal( +final batchSetPillSheetGroupProvider = AutoDisposeProvider.internal( batchSetPillSheetGroup, name: r'batchSetPillSheetGroupProvider', - debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product') - ? null - : _$batchSetPillSheetGroupHash, + debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product') ? null : _$batchSetPillSheetGroupHash, dependencies: [databaseProvider], - allTransitiveDependencies: { - databaseProvider, - ...?databaseProvider.allTransitiveDependencies - }, + allTransitiveDependencies: {databaseProvider, ...?databaseProvider.allTransitiveDependencies}, ); -typedef BatchSetPillSheetGroupRef - = AutoDisposeProviderRef; +typedef BatchSetPillSheetGroupRef = AutoDisposeProviderRef; String _$setPillSheetGroupHash() => r'c8f16da419ae0bd4ad77f2d95070189c3a748f4c'; /// See also [setPillSheetGroup]. @ProviderFor(setPillSheetGroup) -final setPillSheetGroupProvider = - AutoDisposeProvider.internal( +final setPillSheetGroupProvider = AutoDisposeProvider.internal( setPillSheetGroup, name: r'setPillSheetGroupProvider', - debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product') - ? null - : _$setPillSheetGroupHash, + debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product') ? null : _$setPillSheetGroupHash, dependencies: [databaseProvider], - allTransitiveDependencies: { - databaseProvider, - ...?databaseProvider.allTransitiveDependencies - }, + allTransitiveDependencies: {databaseProvider, ...?databaseProvider.allTransitiveDependencies}, ); typedef SetPillSheetGroupRef = AutoDisposeProviderRef; diff --git a/lib/provider/pill_sheet_modified_history.g.dart b/lib/provider/pill_sheet_modified_history.g.dart index 02fdc8fbd8..cd08d5e785 100644 --- a/lib/provider/pill_sheet_modified_history.g.dart +++ b/lib/provider/pill_sheet_modified_history.g.dart @@ -6,8 +6,7 @@ part of 'pill_sheet_modified_history.dart'; // RiverpodGenerator // ************************************************************************** -String _$pillSheetModifiedHistoriesWithLimitHash() => - r'6ce11b768ad4c04c8dd52a6e5dd007d84f8ebca9'; +String _$pillSheetModifiedHistoriesWithLimitHash() => r'6ce11b768ad4c04c8dd52a6e5dd007d84f8ebca9'; /// Copied from Dart SDK class _SystemHash { @@ -32,12 +31,10 @@ class _SystemHash { /// See also [pillSheetModifiedHistoriesWithLimit]. @ProviderFor(pillSheetModifiedHistoriesWithLimit) -const pillSheetModifiedHistoriesWithLimitProvider = - PillSheetModifiedHistoriesWithLimitFamily(); +const pillSheetModifiedHistoriesWithLimitProvider = PillSheetModifiedHistoriesWithLimitFamily(); /// See also [pillSheetModifiedHistoriesWithLimit]. -class PillSheetModifiedHistoriesWithLimitFamily - extends Family>> { +class PillSheetModifiedHistoriesWithLimitFamily extends Family>> { /// See also [pillSheetModifiedHistoriesWithLimit]. const PillSheetModifiedHistoriesWithLimitFamily(); @@ -59,30 +56,25 @@ class PillSheetModifiedHistoriesWithLimitFamily ); } - static final Iterable _dependencies = [ - databaseProvider - ]; + static final Iterable _dependencies = [databaseProvider]; @override Iterable? get dependencies => _dependencies; - static final Iterable _allTransitiveDependencies = - { + static final Iterable _allTransitiveDependencies = { databaseProvider, ...?databaseProvider.allTransitiveDependencies }; @override - Iterable? get allTransitiveDependencies => - _allTransitiveDependencies; + Iterable? get allTransitiveDependencies => _allTransitiveDependencies; @override String? get name => r'pillSheetModifiedHistoriesWithLimitProvider'; } /// See also [pillSheetModifiedHistoriesWithLimit]. -class PillSheetModifiedHistoriesWithLimitProvider - extends AutoDisposeStreamProvider> { +class PillSheetModifiedHistoriesWithLimitProvider extends AutoDisposeStreamProvider> { /// See also [pillSheetModifiedHistoriesWithLimit]. PillSheetModifiedHistoriesWithLimitProvider({ required int limit, @@ -93,13 +85,9 @@ class PillSheetModifiedHistoriesWithLimitProvider ), from: pillSheetModifiedHistoriesWithLimitProvider, name: r'pillSheetModifiedHistoriesWithLimitProvider', - debugGetCreateSourceHash: - const bool.fromEnvironment('dart.vm.product') - ? null - : _$pillSheetModifiedHistoriesWithLimitHash, + debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product') ? null : _$pillSheetModifiedHistoriesWithLimitHash, dependencies: PillSheetModifiedHistoriesWithLimitFamily._dependencies, - allTransitiveDependencies: PillSheetModifiedHistoriesWithLimitFamily - ._allTransitiveDependencies, + allTransitiveDependencies: PillSheetModifiedHistoriesWithLimitFamily._allTransitiveDependencies, limit: limit, ); @@ -117,9 +105,7 @@ class PillSheetModifiedHistoriesWithLimitProvider @override Override overrideWith( - Stream> Function( - PillSheetModifiedHistoriesWithLimitRef provider) - create, + Stream> Function(PillSheetModifiedHistoriesWithLimitRef provider) create, ) { return ProviderOverride( origin: this, @@ -136,15 +122,13 @@ class PillSheetModifiedHistoriesWithLimitProvider } @override - AutoDisposeStreamProviderElement> - createElement() { + AutoDisposeStreamProviderElement> createElement() { return _PillSheetModifiedHistoriesWithLimitProviderElement(this); } @override bool operator ==(Object other) { - return other is PillSheetModifiedHistoriesWithLimitProvider && - other.limit == limit; + return other is PillSheetModifiedHistoriesWithLimitProvider && other.limit == limit; } @override @@ -156,33 +140,27 @@ class PillSheetModifiedHistoriesWithLimitProvider } } -mixin PillSheetModifiedHistoriesWithLimitRef - on AutoDisposeStreamProviderRef> { +mixin PillSheetModifiedHistoriesWithLimitRef on AutoDisposeStreamProviderRef> { /// The parameter `limit` of this provider. int get limit; } -class _PillSheetModifiedHistoriesWithLimitProviderElement - extends AutoDisposeStreamProviderElement> +class _PillSheetModifiedHistoriesWithLimitProviderElement extends AutoDisposeStreamProviderElement> with PillSheetModifiedHistoriesWithLimitRef { _PillSheetModifiedHistoriesWithLimitProviderElement(super.provider); @override - int get limit => - (origin as PillSheetModifiedHistoriesWithLimitProvider).limit; + int get limit => (origin as PillSheetModifiedHistoriesWithLimitProvider).limit; } -String _$pillSheetModifiedHistoriesWithRangeHash() => - r'ea775de86dd0b2b2bb7879a0fb01e3978df3836d'; +String _$pillSheetModifiedHistoriesWithRangeHash() => r'ea775de86dd0b2b2bb7879a0fb01e3978df3836d'; /// See also [pillSheetModifiedHistoriesWithRange]. @ProviderFor(pillSheetModifiedHistoriesWithRange) -const pillSheetModifiedHistoriesWithRangeProvider = - PillSheetModifiedHistoriesWithRangeFamily(); +const pillSheetModifiedHistoriesWithRangeProvider = PillSheetModifiedHistoriesWithRangeFamily(); /// See also [pillSheetModifiedHistoriesWithRange]. -class PillSheetModifiedHistoriesWithRangeFamily - extends Family>> { +class PillSheetModifiedHistoriesWithRangeFamily extends Family>> { /// See also [pillSheetModifiedHistoriesWithRange]. const PillSheetModifiedHistoriesWithRangeFamily(); @@ -207,30 +185,25 @@ class PillSheetModifiedHistoriesWithRangeFamily ); } - static final Iterable _dependencies = [ - databaseProvider - ]; + static final Iterable _dependencies = [databaseProvider]; @override Iterable? get dependencies => _dependencies; - static final Iterable _allTransitiveDependencies = - { + static final Iterable _allTransitiveDependencies = { databaseProvider, ...?databaseProvider.allTransitiveDependencies }; @override - Iterable? get allTransitiveDependencies => - _allTransitiveDependencies; + Iterable? get allTransitiveDependencies => _allTransitiveDependencies; @override String? get name => r'pillSheetModifiedHistoriesWithRangeProvider'; } /// See also [pillSheetModifiedHistoriesWithRange]. -class PillSheetModifiedHistoriesWithRangeProvider - extends StreamProvider> { +class PillSheetModifiedHistoriesWithRangeProvider extends StreamProvider> { /// See also [pillSheetModifiedHistoriesWithRange]. PillSheetModifiedHistoriesWithRangeProvider({ required DateTime begin, @@ -243,13 +216,9 @@ class PillSheetModifiedHistoriesWithRangeProvider ), from: pillSheetModifiedHistoriesWithRangeProvider, name: r'pillSheetModifiedHistoriesWithRangeProvider', - debugGetCreateSourceHash: - const bool.fromEnvironment('dart.vm.product') - ? null - : _$pillSheetModifiedHistoriesWithRangeHash, + debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product') ? null : _$pillSheetModifiedHistoriesWithRangeHash, dependencies: PillSheetModifiedHistoriesWithRangeFamily._dependencies, - allTransitiveDependencies: PillSheetModifiedHistoriesWithRangeFamily - ._allTransitiveDependencies, + allTransitiveDependencies: PillSheetModifiedHistoriesWithRangeFamily._allTransitiveDependencies, begin: begin, end: end, ); @@ -270,9 +239,7 @@ class PillSheetModifiedHistoriesWithRangeProvider @override Override overrideWith( - Stream> Function( - PillSheetModifiedHistoriesWithRangeRef provider) - create, + Stream> Function(PillSheetModifiedHistoriesWithRangeRef provider) create, ) { return ProviderOverride( origin: this, @@ -296,9 +263,7 @@ class PillSheetModifiedHistoriesWithRangeProvider @override bool operator ==(Object other) { - return other is PillSheetModifiedHistoriesWithRangeProvider && - other.begin == begin && - other.end == end; + return other is PillSheetModifiedHistoriesWithRangeProvider && other.begin == begin && other.end == end; } @override @@ -311,8 +276,7 @@ class PillSheetModifiedHistoriesWithRangeProvider } } -mixin PillSheetModifiedHistoriesWithRangeRef - on StreamProviderRef> { +mixin PillSheetModifiedHistoriesWithRangeRef on StreamProviderRef> { /// The parameter `begin` of this provider. DateTime get begin; @@ -320,17 +284,14 @@ mixin PillSheetModifiedHistoriesWithRangeRef DateTime get end; } -class _PillSheetModifiedHistoriesWithRangeProviderElement - extends StreamProviderElement> +class _PillSheetModifiedHistoriesWithRangeProviderElement extends StreamProviderElement> with PillSheetModifiedHistoriesWithRangeRef { _PillSheetModifiedHistoriesWithRangeProviderElement(super.provider); @override - DateTime get begin => - (origin as PillSheetModifiedHistoriesWithRangeProvider).begin; + DateTime get begin => (origin as PillSheetModifiedHistoriesWithRangeProvider).begin; @override - DateTime get end => - (origin as PillSheetModifiedHistoriesWithRangeProvider).end; + DateTime get end => (origin as PillSheetModifiedHistoriesWithRangeProvider).end; } // ignore_for_file: type=lint // ignore_for_file: subtype_of_sealed_class, invalid_use_of_internal_member, invalid_use_of_visible_for_testing_member diff --git a/lib/provider/remote_config_parameter.g.dart b/lib/provider/remote_config_parameter.g.dart index 23b5681931..fe35d3279f 100644 --- a/lib/provider/remote_config_parameter.g.dart +++ b/lib/provider/remote_config_parameter.g.dart @@ -6,23 +6,18 @@ part of 'remote_config_parameter.dart'; // RiverpodGenerator // ************************************************************************** -String _$remoteConfigParameterHash() => - r'23c34d845e8be5bcee7eee2cadff31080abe2f6c'; +String _$remoteConfigParameterHash() => r'23c34d845e8be5bcee7eee2cadff31080abe2f6c'; /// See also [remoteConfigParameter]. @ProviderFor(remoteConfigParameter) -final remoteConfigParameterProvider = - AutoDisposeProvider.internal( +final remoteConfigParameterProvider = AutoDisposeProvider.internal( remoteConfigParameter, name: r'remoteConfigParameterProvider', - debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product') - ? null - : _$remoteConfigParameterHash, + debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product') ? null : _$remoteConfigParameterHash, dependencies: null, allTransitiveDependencies: null, ); -typedef RemoteConfigParameterRef - = AutoDisposeProviderRef; +typedef RemoteConfigParameterRef = AutoDisposeProviderRef; // ignore_for_file: type=lint // ignore_for_file: subtype_of_sealed_class, invalid_use_of_internal_member, invalid_use_of_visible_for_testing_member diff --git a/lib/provider/shared_preferences.g.dart b/lib/provider/shared_preferences.g.dart index 8332b5df1d..9cc50d4157 100644 --- a/lib/provider/shared_preferences.g.dart +++ b/lib/provider/shared_preferences.g.dart @@ -13,9 +13,7 @@ String _$sharedPreferencesHash() => r'bb2b6a0d99f4353a7bbeda161fd752d31bb0617b'; final sharedPreferencesProvider = Provider.internal( sharedPreferences, name: r'sharedPreferencesProvider', - debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product') - ? null - : _$sharedPreferencesHash, + debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product') ? null : _$sharedPreferencesHash, dependencies: const [], allTransitiveDependencies: const {}, ); diff --git a/lib/provider/tick.g.dart b/lib/provider/tick.g.dart index efc99856cf..d0118d63fa 100644 --- a/lib/provider/tick.g.dart +++ b/lib/provider/tick.g.dart @@ -13,8 +13,7 @@ String _$tickHash() => r'686abe45d9c3fcc30740691654bd6533752d671e'; final tickProvider = AutoDisposeNotifierProvider.internal( Tick.new, name: r'tickProvider', - debugGetCreateSourceHash: - const bool.fromEnvironment('dart.vm.product') ? null : _$tickHash, + debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product') ? null : _$tickHash, dependencies: null, allTransitiveDependencies: null, ); diff --git a/lib/provider/typed_shared_preferences.g.dart b/lib/provider/typed_shared_preferences.g.dart index af7e04b18f..b16032f748 100644 --- a/lib/provider/typed_shared_preferences.g.dart +++ b/lib/provider/typed_shared_preferences.g.dart @@ -6,8 +6,7 @@ part of 'typed_shared_preferences.dart'; // RiverpodGenerator // ************************************************************************** -String _$boolSharedPreferencesHash() => - r'74722005ae3dc56ee882744e65c2518f169318a9'; +String _$boolSharedPreferencesHash() => r'74722005ae3dc56ee882744e65c2518f169318a9'; /// Copied from Dart SDK class _SystemHash { @@ -30,8 +29,7 @@ class _SystemHash { } } -abstract class _$BoolSharedPreferences - extends BuildlessNotifier> { +abstract class _$BoolSharedPreferences extends BuildlessNotifier> { late final String key; SharedPreferencesState build( @@ -44,8 +42,7 @@ abstract class _$BoolSharedPreferences const boolSharedPreferencesProvider = BoolSharedPreferencesFamily(); /// See also [BoolSharedPreferences]. -class BoolSharedPreferencesFamily - extends Family> { +class BoolSharedPreferencesFamily extends Family> { /// See also [BoolSharedPreferences]. const BoolSharedPreferencesFamily(); @@ -67,30 +64,25 @@ class BoolSharedPreferencesFamily ); } - static final Iterable _dependencies = [ - sharedPreferencesProvider - ]; + static final Iterable _dependencies = [sharedPreferencesProvider]; @override Iterable? get dependencies => _dependencies; - static final Iterable _allTransitiveDependencies = - { + static final Iterable _allTransitiveDependencies = { sharedPreferencesProvider, ...?sharedPreferencesProvider.allTransitiveDependencies }; @override - Iterable? get allTransitiveDependencies => - _allTransitiveDependencies; + Iterable? get allTransitiveDependencies => _allTransitiveDependencies; @override String? get name => r'boolSharedPreferencesProvider'; } /// See also [BoolSharedPreferences]. -class BoolSharedPreferencesProvider extends NotifierProviderImpl< - BoolSharedPreferences, SharedPreferencesState> { +class BoolSharedPreferencesProvider extends NotifierProviderImpl> { /// See also [BoolSharedPreferences]. BoolSharedPreferencesProvider( String key, @@ -98,13 +90,9 @@ class BoolSharedPreferencesProvider extends NotifierProviderImpl< () => BoolSharedPreferences()..key = key, from: boolSharedPreferencesProvider, name: r'boolSharedPreferencesProvider', - debugGetCreateSourceHash: - const bool.fromEnvironment('dart.vm.product') - ? null - : _$boolSharedPreferencesHash, + debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product') ? null : _$boolSharedPreferencesHash, dependencies: BoolSharedPreferencesFamily._dependencies, - allTransitiveDependencies: - BoolSharedPreferencesFamily._allTransitiveDependencies, + allTransitiveDependencies: BoolSharedPreferencesFamily._allTransitiveDependencies, key: key, ); @@ -146,8 +134,7 @@ class BoolSharedPreferencesProvider extends NotifierProviderImpl< } @override - NotifierProviderElement> - createElement() { + NotifierProviderElement> createElement() { return _BoolSharedPreferencesProviderElement(this); } @@ -165,26 +152,22 @@ class BoolSharedPreferencesProvider extends NotifierProviderImpl< } } -mixin BoolSharedPreferencesRef - on NotifierProviderRef> { +mixin BoolSharedPreferencesRef on NotifierProviderRef> { /// The parameter `key` of this provider. String get key; } -class _BoolSharedPreferencesProviderElement extends NotifierProviderElement< - BoolSharedPreferences, - SharedPreferencesState> with BoolSharedPreferencesRef { +class _BoolSharedPreferencesProviderElement extends NotifierProviderElement> + with BoolSharedPreferencesRef { _BoolSharedPreferencesProviderElement(super.provider); @override String get key => (origin as BoolSharedPreferencesProvider).key; } -String _$intSharedPreferencesHash() => - r'ae66140077df3922444c17579c2b5483ed6c21b8'; +String _$intSharedPreferencesHash() => r'ae66140077df3922444c17579c2b5483ed6c21b8'; -abstract class _$IntSharedPreferences - extends BuildlessNotifier> { +abstract class _$IntSharedPreferences extends BuildlessNotifier> { late final String key; SharedPreferencesState build( @@ -219,30 +202,25 @@ class IntSharedPreferencesFamily extends Family> { ); } - static final Iterable _dependencies = [ - sharedPreferencesProvider - ]; + static final Iterable _dependencies = [sharedPreferencesProvider]; @override Iterable? get dependencies => _dependencies; - static final Iterable _allTransitiveDependencies = - { + static final Iterable _allTransitiveDependencies = { sharedPreferencesProvider, ...?sharedPreferencesProvider.allTransitiveDependencies }; @override - Iterable? get allTransitiveDependencies => - _allTransitiveDependencies; + Iterable? get allTransitiveDependencies => _allTransitiveDependencies; @override String? get name => r'intSharedPreferencesProvider'; } /// See also [IntSharedPreferences]. -class IntSharedPreferencesProvider extends NotifierProviderImpl< - IntSharedPreferences, SharedPreferencesState> { +class IntSharedPreferencesProvider extends NotifierProviderImpl> { /// See also [IntSharedPreferences]. IntSharedPreferencesProvider( String key, @@ -250,13 +228,9 @@ class IntSharedPreferencesProvider extends NotifierProviderImpl< () => IntSharedPreferences()..key = key, from: intSharedPreferencesProvider, name: r'intSharedPreferencesProvider', - debugGetCreateSourceHash: - const bool.fromEnvironment('dart.vm.product') - ? null - : _$intSharedPreferencesHash, + debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product') ? null : _$intSharedPreferencesHash, dependencies: IntSharedPreferencesFamily._dependencies, - allTransitiveDependencies: - IntSharedPreferencesFamily._allTransitiveDependencies, + allTransitiveDependencies: IntSharedPreferencesFamily._allTransitiveDependencies, key: key, ); @@ -298,8 +272,7 @@ class IntSharedPreferencesProvider extends NotifierProviderImpl< } @override - NotifierProviderElement> - createElement() { + NotifierProviderElement> createElement() { return _IntSharedPreferencesProviderElement(this); } @@ -317,26 +290,22 @@ class IntSharedPreferencesProvider extends NotifierProviderImpl< } } -mixin IntSharedPreferencesRef - on NotifierProviderRef> { +mixin IntSharedPreferencesRef on NotifierProviderRef> { /// The parameter `key` of this provider. String get key; } -class _IntSharedPreferencesProviderElement extends NotifierProviderElement< - IntSharedPreferences, - SharedPreferencesState> with IntSharedPreferencesRef { +class _IntSharedPreferencesProviderElement extends NotifierProviderElement> + with IntSharedPreferencesRef { _IntSharedPreferencesProviderElement(super.provider); @override String get key => (origin as IntSharedPreferencesProvider).key; } -String _$stringSharedPreferencesHash() => - r'3dbe38b126b12544017f8538c33ea459704cf110'; +String _$stringSharedPreferencesHash() => r'3dbe38b126b12544017f8538c33ea459704cf110'; -abstract class _$StringSharedPreferences - extends BuildlessNotifier> { +abstract class _$StringSharedPreferences extends BuildlessNotifier> { late final String key; SharedPreferencesState build( @@ -349,8 +318,7 @@ abstract class _$StringSharedPreferences const stringSharedPreferencesProvider = StringSharedPreferencesFamily(); /// See also [StringSharedPreferences]. -class StringSharedPreferencesFamily - extends Family> { +class StringSharedPreferencesFamily extends Family> { /// See also [StringSharedPreferences]. const StringSharedPreferencesFamily(); @@ -372,30 +340,25 @@ class StringSharedPreferencesFamily ); } - static final Iterable _dependencies = [ - sharedPreferencesProvider - ]; + static final Iterable _dependencies = [sharedPreferencesProvider]; @override Iterable? get dependencies => _dependencies; - static final Iterable _allTransitiveDependencies = - { + static final Iterable _allTransitiveDependencies = { sharedPreferencesProvider, ...?sharedPreferencesProvider.allTransitiveDependencies }; @override - Iterable? get allTransitiveDependencies => - _allTransitiveDependencies; + Iterable? get allTransitiveDependencies => _allTransitiveDependencies; @override String? get name => r'stringSharedPreferencesProvider'; } /// See also [StringSharedPreferences]. -class StringSharedPreferencesProvider extends NotifierProviderImpl< - StringSharedPreferences, SharedPreferencesState> { +class StringSharedPreferencesProvider extends NotifierProviderImpl> { /// See also [StringSharedPreferences]. StringSharedPreferencesProvider( String key, @@ -403,13 +366,9 @@ class StringSharedPreferencesProvider extends NotifierProviderImpl< () => StringSharedPreferences()..key = key, from: stringSharedPreferencesProvider, name: r'stringSharedPreferencesProvider', - debugGetCreateSourceHash: - const bool.fromEnvironment('dart.vm.product') - ? null - : _$stringSharedPreferencesHash, + debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product') ? null : _$stringSharedPreferencesHash, dependencies: StringSharedPreferencesFamily._dependencies, - allTransitiveDependencies: - StringSharedPreferencesFamily._allTransitiveDependencies, + allTransitiveDependencies: StringSharedPreferencesFamily._allTransitiveDependencies, key: key, ); @@ -451,8 +410,7 @@ class StringSharedPreferencesProvider extends NotifierProviderImpl< } @override - NotifierProviderElement> createElement() { + NotifierProviderElement> createElement() { return _StringSharedPreferencesProviderElement(this); } @@ -470,15 +428,13 @@ class StringSharedPreferencesProvider extends NotifierProviderImpl< } } -mixin StringSharedPreferencesRef - on NotifierProviderRef> { +mixin StringSharedPreferencesRef on NotifierProviderRef> { /// The parameter `key` of this provider. String get key; } -class _StringSharedPreferencesProviderElement extends NotifierProviderElement< - StringSharedPreferences, - SharedPreferencesState> with StringSharedPreferencesRef { +class _StringSharedPreferencesProviderElement extends NotifierProviderElement> + with StringSharedPreferencesRef { _StringSharedPreferencesProviderElement(super.provider); @override diff --git a/lib/utils/auth/boilerplate.dart b/lib/utils/auth/boilerplate.dart index 2c0e76ef37..c4ec392dd5 100644 --- a/lib/utils/auth/boilerplate.dart +++ b/lib/utils/auth/boilerplate.dart @@ -11,7 +11,7 @@ Future callLinkWithApple(LinkApple linkApple) async { final user = FirebaseAuth.instance.currentUser; if (user == null) { throw AssertionError("Required Firebase user"); -} + } try { final credential = await linkWithApple(user); if (credential == null) { diff --git a/lib/utils/auth/exception.dart b/lib/utils/auth/exception.dart index 2f55dc8eff..c6f89e9726 100644 --- a/lib/utils/auth/exception.dart +++ b/lib/utils/auth/exception.dart @@ -2,23 +2,17 @@ import 'package:firebase_auth/firebase_auth.dart'; import 'package:pilll/entity/link_account_type.dart'; import 'package:pilll/features/error/alert_error.dart'; -Exception? mapFromFirebaseAuthException( - FirebaseAuthException e, LinkAccountType accountType) { +Exception? mapFromFirebaseAuthException(FirebaseAuthException e, LinkAccountType accountType) { if (e.code == "provider-already-linked") { - throw AlertError( - "この${accountType.providerName}アカウントはすにでお使いのPilllのアカウントに紐付いています。画面の更新をお試しください。FAQもご覧ください。詳細: ${e.message}", - faqLinkURL: - "https://pilll.wraptas.site/a8d3c745e58c40f0b8b771bb70f7a7d1"); + throw AlertError("この${accountType.providerName}アカウントはすにでお使いのPilllのアカウントに紐付いています。画面の更新をお試しください。FAQもご覧ください。詳細: ${e.message}", + faqLinkURL: "https://pilll.wraptas.site/a8d3c745e58c40f0b8b771bb70f7a7d1"); } if (e.code == "credential-already-in-use") { - throw AlertError( - "この${accountType.providerName}アカウントはすでに他のPilllのアカウントに紐付いているため登録ができません。FAQもご覧ください。詳細: ${e.message}", - faqLinkURL: - "https://pilll.wraptas.site/a8d3c745e58c40f0b8b771bb70f7a7d1"); + throw AlertError("この${accountType.providerName}アカウントはすでに他のPilllのアカウントに紐付いているため登録ができません。FAQもご覧ください。詳細: ${e.message}", + faqLinkURL: "https://pilll.wraptas.site/a8d3c745e58c40f0b8b771bb70f7a7d1"); } if (e.code == "email-already-in-use") { - throw AlertError( - "すでに${accountType.providerName}アカウントでお使いのメールアドレスが他のPilllアカウントに紐付いているため登録ができません。FAQもご覧ください。詳細: ${e.message}"); + throw AlertError("すでに${accountType.providerName}アカウントでお使いのメールアドレスが他のPilllアカウントに紐付いているため登録ができません。FAQもご覧ください。詳細: ${e.message}"); } return null; } diff --git a/lib/utils/datetime/date_compare.dart b/lib/utils/datetime/date_compare.dart index 1039866b0a..ba4de64a21 100644 --- a/lib/utils/datetime/date_compare.dart +++ b/lib/utils/datetime/date_compare.dart @@ -1,5 +1,3 @@ -bool isSameDay(DateTime lhs, DateTime rhs) => - lhs.year == rhs.year && lhs.month == rhs.month && lhs.day == rhs.day; +bool isSameDay(DateTime lhs, DateTime rhs) => lhs.year == rhs.year && lhs.month == rhs.month && lhs.day == rhs.day; -bool isSameMonth(DateTime lhs, DateTime rhs) => - lhs.year == rhs.year && lhs.month == rhs.month; +bool isSameMonth(DateTime lhs, DateTime rhs) => lhs.year == rhs.year && lhs.month == rhs.month; diff --git a/lib/utils/environment.dart b/lib/utils/environment.dart index 34c6410ff0..5131a1c573 100644 --- a/lib/utils/environment.dart +++ b/lib/utils/environment.dart @@ -8,20 +8,16 @@ enum Flavor { abstract class Environment { static bool get isProduction => flavor == Flavor.PRODUCTION; - static bool get isDevelopment => - flavor == Flavor.DEVELOP || flavor == Flavor.LOCAL; + static bool get isDevelopment => flavor == Flavor.DEVELOP || flavor == Flavor.LOCAL; static bool get isLocal => flavor == Flavor.LOCAL; static bool isTest = false; static Flavor? flavor; // Avoid too, too much CPU usage. // Ref: https://github.com/flutter/flutter/issues/13203#issuecomment-430134157 - static bool get disableWidgetAnimation => - const bool.fromEnvironment("DISABLE_WIDGET_ANIMATION") && isDevelopment; + static bool get disableWidgetAnimation => const bool.fromEnvironment("DISABLE_WIDGET_ANIMATION") && isDevelopment; - static const siwaServiceIdentifier = - String.fromEnvironment("SIWA_SERVICE_IDENTIFIIER"); - static const androidSiwaRedirectURL = - String.fromEnvironment("ANDROID_SIWA_REDIRECT_URL"); + static const siwaServiceIdentifier = String.fromEnvironment("SIWA_SERVICE_IDENTIFIIER"); + static const androidSiwaRedirectURL = String.fromEnvironment("ANDROID_SIWA_REDIRECT_URL"); static Function()? deleteUser; static Function()? signOutUser; diff --git a/lib/utils/formatter/text_input_formatter.dart b/lib/utils/formatter/text_input_formatter.dart index 50acbafb1b..9298fefc7f 100644 --- a/lib/utils/formatter/text_input_formatter.dart +++ b/lib/utils/formatter/text_input_formatter.dart @@ -1,8 +1,7 @@ import 'package:flutter/services.dart'; abstract class AppTextFieldFormatter { - static final greaterThanZero = - TextInputFormatter.withFunction((oldValue, newValue) { + static final greaterThanZero = TextInputFormatter.withFunction((oldValue, newValue) { if (newValue.text.isEmpty) { return newValue; } diff --git a/lib/utils/links.dart b/lib/utils/links.dart index c8a1ac2b91..cb39ca2f79 100644 --- a/lib/utils/links.dart +++ b/lib/utils/links.dart @@ -1,2 +1 @@ -const preimumLink = - "https://pilll.wraptas.site/fffebcb749b14d08863ecbc41943fb90"; +const preimumLink = "https://pilll.wraptas.site/fffebcb749b14d08863ecbc41943fb90"; diff --git a/lib/utils/remote_config.g.dart b/lib/utils/remote_config.g.dart index 1b6eadfefe..24b9b4f282 100644 --- a/lib/utils/remote_config.g.dart +++ b/lib/utils/remote_config.g.dart @@ -13,9 +13,7 @@ String _$appIsReleasedHash() => r'8a68c1d9a915644d386343a73424fda0504492e4'; final appIsReleasedProvider = AutoDisposeFutureProvider.internal( appIsReleased, name: r'appIsReleasedProvider', - debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product') - ? null - : _$appIsReleasedHash, + debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product') ? null : _$appIsReleasedHash, dependencies: null, allTransitiveDependencies: null, );