// 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: 'recent_vendors') int get recentVendors => throw _privateConstructorUsedError; @JsonKey(name: 'vendors_with_models') int get vendorsWithModels => throw _privateConstructorUsedError; @JsonKey(name: 'total_models') int get totalModels => throw _privateConstructorUsedError; @JsonKey(name: 'updated_at') DateTime? get updatedAt => 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: 'recent_vendors') int recentVendors, @JsonKey(name: 'vendors_with_models') int vendorsWithModels, @JsonKey(name: 'total_models') int totalModels, @JsonKey(name: 'updated_at') DateTime? updatedAt}); } /// @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? recentVendors = null, Object? vendorsWithModels = null, Object? totalModels = null, Object? updatedAt = freezed, }) { 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, recentVendors: null == recentVendors ? _value.recentVendors : recentVendors // ignore: cast_nullable_to_non_nullable as int, vendorsWithModels: null == vendorsWithModels ? _value.vendorsWithModels : vendorsWithModels // ignore: cast_nullable_to_non_nullable as int, totalModels: null == totalModels ? _value.totalModels : totalModels // ignore: cast_nullable_to_non_nullable as int, updatedAt: freezed == updatedAt ? _value.updatedAt : updatedAt // ignore: cast_nullable_to_non_nullable as DateTime?, ) 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: 'recent_vendors') int recentVendors, @JsonKey(name: 'vendors_with_models') int vendorsWithModels, @JsonKey(name: 'total_models') int totalModels, @JsonKey(name: 'updated_at') DateTime? updatedAt}); } /// @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? recentVendors = null, Object? vendorsWithModels = null, Object? totalModels = null, Object? updatedAt = freezed, }) { 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, recentVendors: null == recentVendors ? _value.recentVendors : recentVendors // ignore: cast_nullable_to_non_nullable as int, vendorsWithModels: null == vendorsWithModels ? _value.vendorsWithModels : vendorsWithModels // ignore: cast_nullable_to_non_nullable as int, totalModels: null == totalModels ? _value.totalModels : totalModels // ignore: cast_nullable_to_non_nullable as int, updatedAt: freezed == updatedAt ? _value.updatedAt : updatedAt // ignore: cast_nullable_to_non_nullable as DateTime?, )); } } /// @nodoc @JsonSerializable() class _$VendorStatsDtoImpl extends _VendorStatsDto { const _$VendorStatsDtoImpl( {@JsonKey(name: 'total_vendors') this.totalVendors = 0, @JsonKey(name: 'active_vendors') this.activeVendors = 0, @JsonKey(name: 'inactive_vendors') this.inactiveVendors = 0, @JsonKey(name: 'recent_vendors') this.recentVendors = 0, @JsonKey(name: 'vendors_with_models') this.vendorsWithModels = 0, @JsonKey(name: 'total_models') this.totalModels = 0, @JsonKey(name: 'updated_at') this.updatedAt}) : super._(); 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: 'recent_vendors') final int recentVendors; @override @JsonKey(name: 'vendors_with_models') final int vendorsWithModels; @override @JsonKey(name: 'total_models') final int totalModels; @override @JsonKey(name: 'updated_at') final DateTime? updatedAt; @override String toString() { return 'VendorStatsDto(totalVendors: $totalVendors, activeVendors: $activeVendors, inactiveVendors: $inactiveVendors, recentVendors: $recentVendors, vendorsWithModels: $vendorsWithModels, totalModels: $totalModels, updatedAt: $updatedAt)'; } @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.recentVendors, recentVendors) || other.recentVendors == recentVendors) && (identical(other.vendorsWithModels, vendorsWithModels) || other.vendorsWithModels == vendorsWithModels) && (identical(other.totalModels, totalModels) || other.totalModels == totalModels) && (identical(other.updatedAt, updatedAt) || other.updatedAt == updatedAt)); } @JsonKey(includeFromJson: false, includeToJson: false) @override int get hashCode => Object.hash( runtimeType, totalVendors, activeVendors, inactiveVendors, recentVendors, vendorsWithModels, totalModels, updatedAt); /// 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 extends VendorStatsDto { const factory _VendorStatsDto( {@JsonKey(name: 'total_vendors') final int totalVendors, @JsonKey(name: 'active_vendors') final int activeVendors, @JsonKey(name: 'inactive_vendors') final int inactiveVendors, @JsonKey(name: 'recent_vendors') final int recentVendors, @JsonKey(name: 'vendors_with_models') final int vendorsWithModels, @JsonKey(name: 'total_models') final int totalModels, @JsonKey(name: 'updated_at') final DateTime? updatedAt}) = _$VendorStatsDtoImpl; const _VendorStatsDto._() : super._(); 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: 'recent_vendors') int get recentVendors; @override @JsonKey(name: 'vendors_with_models') int get vendorsWithModels; @override @JsonKey(name: 'total_models') int get totalModels; @override @JsonKey(name: 'updated_at') DateTime? get updatedAt; /// 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; }