| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293 |
- // coverage:ignore-file
- // GENERATED CODE - DO NOT MODIFY BY HAND
- // ignore_for_file: type=lint
- // ignore_for_file: unused_element, deprecated_member_use, deprecated_member_use_from_same_package, use_function_type_syntax_for_parameters, unnecessary_const, avoid_init_to_null, invalid_override_different_default_values_named, prefer_expression_function_bodies, annotate_overrides, invalid_annotation_target, unnecessary_question_mark
- part of 'sync_response_dto.dart';
- // **************************************************************************
- // FreezedGenerator
- // **************************************************************************
- T _$identity<T>(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',
- );
- SyncResponseDto _$SyncResponseDtoFromJson(Map<String, dynamic> json) {
- return _SyncResponseDto.fromJson(json);
- }
- /// @nodoc
- mixin _$SyncResponseDto {
- int get status => throw _privateConstructorUsedError;
- String get statusText => throw _privateConstructorUsedError;
- int? get idAssegnato => throw _privateConstructorUsedError;
- List<String> get messages => throw _privateConstructorUsedError;
- List<String> get validationErrors => throw _privateConstructorUsedError;
- /// Serializes this SyncResponseDto to a JSON map.
- Map<String, dynamic> toJson() => throw _privateConstructorUsedError;
- /// Create a copy of SyncResponseDto
- /// with the given fields replaced by the non-null parameter values.
- @JsonKey(includeFromJson: false, includeToJson: false)
- $SyncResponseDtoCopyWith<SyncResponseDto> get copyWith =>
- throw _privateConstructorUsedError;
- }
- /// @nodoc
- abstract class $SyncResponseDtoCopyWith<$Res> {
- factory $SyncResponseDtoCopyWith(
- SyncResponseDto value,
- $Res Function(SyncResponseDto) then,
- ) = _$SyncResponseDtoCopyWithImpl<$Res, SyncResponseDto>;
- @useResult
- $Res call({
- int status,
- String statusText,
- int? idAssegnato,
- List<String> messages,
- List<String> validationErrors,
- });
- }
- /// @nodoc
- class _$SyncResponseDtoCopyWithImpl<$Res, $Val extends SyncResponseDto>
- implements $SyncResponseDtoCopyWith<$Res> {
- _$SyncResponseDtoCopyWithImpl(this._value, this._then);
- // ignore: unused_field
- final $Val _value;
- // ignore: unused_field
- final $Res Function($Val) _then;
- /// Create a copy of SyncResponseDto
- /// with the given fields replaced by the non-null parameter values.
- @pragma('vm:prefer-inline')
- @override
- $Res call({
- Object? status = null,
- Object? statusText = null,
- Object? idAssegnato = freezed,
- Object? messages = null,
- Object? validationErrors = null,
- }) {
- return _then(
- _value.copyWith(
- status: null == status
- ? _value.status
- : status // ignore: cast_nullable_to_non_nullable
- as int,
- statusText: null == statusText
- ? _value.statusText
- : statusText // ignore: cast_nullable_to_non_nullable
- as String,
- idAssegnato: freezed == idAssegnato
- ? _value.idAssegnato
- : idAssegnato // ignore: cast_nullable_to_non_nullable
- as int?,
- messages: null == messages
- ? _value.messages
- : messages // ignore: cast_nullable_to_non_nullable
- as List<String>,
- validationErrors: null == validationErrors
- ? _value.validationErrors
- : validationErrors // ignore: cast_nullable_to_non_nullable
- as List<String>,
- )
- as $Val,
- );
- }
- }
- /// @nodoc
- abstract class _$$SyncResponseDtoImplCopyWith<$Res>
- implements $SyncResponseDtoCopyWith<$Res> {
- factory _$$SyncResponseDtoImplCopyWith(
- _$SyncResponseDtoImpl value,
- $Res Function(_$SyncResponseDtoImpl) then,
- ) = __$$SyncResponseDtoImplCopyWithImpl<$Res>;
- @override
- @useResult
- $Res call({
- int status,
- String statusText,
- int? idAssegnato,
- List<String> messages,
- List<String> validationErrors,
- });
- }
- /// @nodoc
- class __$$SyncResponseDtoImplCopyWithImpl<$Res>
- extends _$SyncResponseDtoCopyWithImpl<$Res, _$SyncResponseDtoImpl>
- implements _$$SyncResponseDtoImplCopyWith<$Res> {
- __$$SyncResponseDtoImplCopyWithImpl(
- _$SyncResponseDtoImpl _value,
- $Res Function(_$SyncResponseDtoImpl) _then,
- ) : super(_value, _then);
- /// Create a copy of SyncResponseDto
- /// with the given fields replaced by the non-null parameter values.
- @pragma('vm:prefer-inline')
- @override
- $Res call({
- Object? status = null,
- Object? statusText = null,
- Object? idAssegnato = freezed,
- Object? messages = null,
- Object? validationErrors = null,
- }) {
- return _then(
- _$SyncResponseDtoImpl(
- status: null == status
- ? _value.status
- : status // ignore: cast_nullable_to_non_nullable
- as int,
- statusText: null == statusText
- ? _value.statusText
- : statusText // ignore: cast_nullable_to_non_nullable
- as String,
- idAssegnato: freezed == idAssegnato
- ? _value.idAssegnato
- : idAssegnato // ignore: cast_nullable_to_non_nullable
- as int?,
- messages: null == messages
- ? _value._messages
- : messages // ignore: cast_nullable_to_non_nullable
- as List<String>,
- validationErrors: null == validationErrors
- ? _value._validationErrors
- : validationErrors // ignore: cast_nullable_to_non_nullable
- as List<String>,
- ),
- );
- }
- }
- /// @nodoc
- @JsonSerializable()
- class _$SyncResponseDtoImpl extends _SyncResponseDto {
- const _$SyncResponseDtoImpl({
- this.status = 0,
- this.statusText = 'OK',
- this.idAssegnato,
- final List<String> messages = const [],
- final List<String> validationErrors = const [],
- }) : _messages = messages,
- _validationErrors = validationErrors,
- super._();
- factory _$SyncResponseDtoImpl.fromJson(Map<String, dynamic> json) =>
- _$$SyncResponseDtoImplFromJson(json);
- @override
- @JsonKey()
- final int status;
- @override
- @JsonKey()
- final String statusText;
- @override
- final int? idAssegnato;
- final List<String> _messages;
- @override
- @JsonKey()
- List<String> get messages {
- if (_messages is EqualUnmodifiableListView) return _messages;
- // ignore: implicit_dynamic_type
- return EqualUnmodifiableListView(_messages);
- }
- final List<String> _validationErrors;
- @override
- @JsonKey()
- List<String> get validationErrors {
- if (_validationErrors is EqualUnmodifiableListView)
- return _validationErrors;
- // ignore: implicit_dynamic_type
- return EqualUnmodifiableListView(_validationErrors);
- }
- @override
- String toString() {
- return 'SyncResponseDto(status: $status, statusText: $statusText, idAssegnato: $idAssegnato, messages: $messages, validationErrors: $validationErrors)';
- }
- @override
- bool operator ==(Object other) {
- return identical(this, other) ||
- (other.runtimeType == runtimeType &&
- other is _$SyncResponseDtoImpl &&
- (identical(other.status, status) || other.status == status) &&
- (identical(other.statusText, statusText) ||
- other.statusText == statusText) &&
- (identical(other.idAssegnato, idAssegnato) ||
- other.idAssegnato == idAssegnato) &&
- const DeepCollectionEquality().equals(other._messages, _messages) &&
- const DeepCollectionEquality().equals(
- other._validationErrors,
- _validationErrors,
- ));
- }
- @JsonKey(includeFromJson: false, includeToJson: false)
- @override
- int get hashCode => Object.hash(
- runtimeType,
- status,
- statusText,
- idAssegnato,
- const DeepCollectionEquality().hash(_messages),
- const DeepCollectionEquality().hash(_validationErrors),
- );
- /// Create a copy of SyncResponseDto
- /// with the given fields replaced by the non-null parameter values.
- @JsonKey(includeFromJson: false, includeToJson: false)
- @override
- @pragma('vm:prefer-inline')
- _$$SyncResponseDtoImplCopyWith<_$SyncResponseDtoImpl> get copyWith =>
- __$$SyncResponseDtoImplCopyWithImpl<_$SyncResponseDtoImpl>(
- this,
- _$identity,
- );
- @override
- Map<String, dynamic> toJson() {
- return _$$SyncResponseDtoImplToJson(this);
- }
- }
- abstract class _SyncResponseDto extends SyncResponseDto {
- const factory _SyncResponseDto({
- final int status,
- final String statusText,
- final int? idAssegnato,
- final List<String> messages,
- final List<String> validationErrors,
- }) = _$SyncResponseDtoImpl;
- const _SyncResponseDto._() : super._();
- factory _SyncResponseDto.fromJson(Map<String, dynamic> json) =
- _$SyncResponseDtoImpl.fromJson;
- @override
- int get status;
- @override
- String get statusText;
- @override
- int? get idAssegnato;
- @override
- List<String> get messages;
- @override
- List<String> get validationErrors;
- /// Create a copy of SyncResponseDto
- /// with the given fields replaced by the non-null parameter values.
- @override
- @JsonKey(includeFromJson: false, includeToJson: false)
- _$$SyncResponseDtoImplCopyWith<_$SyncResponseDtoImpl> get copyWith =>
- throw _privateConstructorUsedError;
- }
|