// 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 'vendor_stats_dto.dart'; // ************************************************************************** // FreezedGenerator // ************************************************************************** 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'); VendorStatsDto _$VendorStatsDtoFromJson(Map json) { return _VendorStatsDto.fromJson(json); } /// @nodoc mixin _$VendorStatsDto { @JsonKey(name: 'total_vendors') int get totalVendors => throw _privateConstructorUsedError; @JsonKey(name: 'active_vendors') int get activeVendors => throw _privateConstructorUsedError; @JsonKey(name: 'inactive_vendors') int get inactiveVendors => throw _privateConstructorUsedError; @JsonKey(name: 'deleted_vendors') int get deletedVendors => throw _privateConstructorUsedError; /// Serializes this VendorStatsDto to a JSON map. Map toJson() => throw _privateConstructorUsedError; /// Create a copy of VendorStatsDto /// with the given fields replaced by the non-null parameter values. @JsonKey(includeFromJson: false, includeToJson: false) $VendorStatsDtoCopyWith get copyWith => throw _privateConstructorUsedError; } /// @nodoc abstract class $VendorStatsDtoCopyWith<$Res> { factory $VendorStatsDtoCopyWith( VendorStatsDto value, $Res Function(VendorStatsDto) then) = _$VendorStatsDtoCopyWithImpl<$Res, VendorStatsDto>; @useResult $Res call( {@JsonKey(name: 'total_vendors') int totalVendors, @JsonKey(name: 'active_vendors') int activeVendors, @JsonKey(name: 'inactive_vendors') int inactiveVendors, @JsonKey(name: 'deleted_vendors') int deletedVendors}); } /// @nodoc class _$VendorStatsDtoCopyWithImpl<$Res, $Val extends VendorStatsDto> implements $VendorStatsDtoCopyWith<$Res> { _$VendorStatsDtoCopyWithImpl(this._value, this._then); // ignore: unused_field final $Val _value; // ignore: unused_field final $Res Function($Val) _then; /// Create a copy of VendorStatsDto /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ Object? totalVendors = null, Object? activeVendors = null, Object? inactiveVendors = null, Object? deletedVendors = null, }) { return _then(_value.copyWith( totalVendors: null == totalVendors ? _value.totalVendors : totalVendors // ignore: cast_nullable_to_non_nullable as int, activeVendors: null == activeVendors ? _value.activeVendors : activeVendors // ignore: cast_nullable_to_non_nullable as int, inactiveVendors: null == inactiveVendors ? _value.inactiveVendors : inactiveVendors // ignore: cast_nullable_to_non_nullable as int, deletedVendors: null == deletedVendors ? _value.deletedVendors : deletedVendors // ignore: cast_nullable_to_non_nullable as int, ) as $Val); } } /// @nodoc abstract class _$$VendorStatsDtoImplCopyWith<$Res> implements $VendorStatsDtoCopyWith<$Res> { factory _$$VendorStatsDtoImplCopyWith(_$VendorStatsDtoImpl value, $Res Function(_$VendorStatsDtoImpl) then) = __$$VendorStatsDtoImplCopyWithImpl<$Res>; @override @useResult $Res call( {@JsonKey(name: 'total_vendors') int totalVendors, @JsonKey(name: 'active_vendors') int activeVendors, @JsonKey(name: 'inactive_vendors') int inactiveVendors, @JsonKey(name: 'deleted_vendors') int deletedVendors}); } /// @nodoc class __$$VendorStatsDtoImplCopyWithImpl<$Res> extends _$VendorStatsDtoCopyWithImpl<$Res, _$VendorStatsDtoImpl> implements _$$VendorStatsDtoImplCopyWith<$Res> { __$$VendorStatsDtoImplCopyWithImpl( _$VendorStatsDtoImpl _value, $Res Function(_$VendorStatsDtoImpl) _then) : super(_value, _then); /// Create a copy of VendorStatsDto /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ Object? totalVendors = null, Object? activeVendors = null, Object? inactiveVendors = null, Object? deletedVendors = null, }) { return _then(_$VendorStatsDtoImpl( totalVendors: null == totalVendors ? _value.totalVendors : totalVendors // ignore: cast_nullable_to_non_nullable as int, activeVendors: null == activeVendors ? _value.activeVendors : activeVendors // ignore: cast_nullable_to_non_nullable as int, inactiveVendors: null == inactiveVendors ? _value.inactiveVendors : inactiveVendors // ignore: cast_nullable_to_non_nullable as int, deletedVendors: null == deletedVendors ? _value.deletedVendors : deletedVendors // ignore: cast_nullable_to_non_nullable as int, )); } } /// @nodoc @JsonSerializable() class _$VendorStatsDtoImpl implements _VendorStatsDto { const _$VendorStatsDtoImpl( {@JsonKey(name: 'total_vendors') required this.totalVendors, @JsonKey(name: 'active_vendors') required this.activeVendors, @JsonKey(name: 'inactive_vendors') required this.inactiveVendors, @JsonKey(name: 'deleted_vendors') required this.deletedVendors}); factory _$VendorStatsDtoImpl.fromJson(Map json) => _$$VendorStatsDtoImplFromJson(json); @override @JsonKey(name: 'total_vendors') final int totalVendors; @override @JsonKey(name: 'active_vendors') final int activeVendors; @override @JsonKey(name: 'inactive_vendors') final int inactiveVendors; @override @JsonKey(name: 'deleted_vendors') final int deletedVendors; @override String toString() { return 'VendorStatsDto(totalVendors: $totalVendors, activeVendors: $activeVendors, inactiveVendors: $inactiveVendors, deletedVendors: $deletedVendors)'; } @override bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _$VendorStatsDtoImpl && (identical(other.totalVendors, totalVendors) || other.totalVendors == totalVendors) && (identical(other.activeVendors, activeVendors) || other.activeVendors == activeVendors) && (identical(other.inactiveVendors, inactiveVendors) || other.inactiveVendors == inactiveVendors) && (identical(other.deletedVendors, deletedVendors) || other.deletedVendors == deletedVendors)); } @JsonKey(includeFromJson: false, includeToJson: false) @override int get hashCode => Object.hash(runtimeType, totalVendors, activeVendors, inactiveVendors, deletedVendors); /// Create a copy of VendorStatsDto /// with the given fields replaced by the non-null parameter values. @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') _$$VendorStatsDtoImplCopyWith<_$VendorStatsDtoImpl> get copyWith => __$$VendorStatsDtoImplCopyWithImpl<_$VendorStatsDtoImpl>( this, _$identity); @override Map toJson() { return _$$VendorStatsDtoImplToJson( this, ); } } abstract class _VendorStatsDto implements VendorStatsDto { const factory _VendorStatsDto( {@JsonKey(name: 'total_vendors') required final int totalVendors, @JsonKey(name: 'active_vendors') required final int activeVendors, @JsonKey(name: 'inactive_vendors') required final int inactiveVendors, @JsonKey(name: 'deleted_vendors') required final int deletedVendors}) = _$VendorStatsDtoImpl; factory _VendorStatsDto.fromJson(Map json) = _$VendorStatsDtoImpl.fromJson; @override @JsonKey(name: 'total_vendors') int get totalVendors; @override @JsonKey(name: 'active_vendors') int get activeVendors; @override @JsonKey(name: 'inactive_vendors') int get inactiveVendors; @override @JsonKey(name: 'deleted_vendors') int get deletedVendors; /// Create a copy of VendorStatsDto /// with the given fields replaced by the non-null parameter values. @override @JsonKey(includeFromJson: false, includeToJson: false) _$$VendorStatsDtoImplCopyWith<_$VendorStatsDtoImpl> get copyWith => throw _privateConstructorUsedError; }