Files
superport/lib/data/models/zipcode_dto.freezed.dart

575 lines
19 KiB
Dart

// 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 'zipcode_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');
ZipcodeDto _$ZipcodeDtoFromJson(Map<String, dynamic> json) {
return _ZipcodeDto.fromJson(json);
}
/// @nodoc
mixin _$ZipcodeDto {
String get zipcode => throw _privateConstructorUsedError;
String get sido => throw _privateConstructorUsedError;
String get gu => throw _privateConstructorUsedError;
@JsonKey(name: 'Etc')
String get etc => throw _privateConstructorUsedError;
@JsonKey(name: 'is_deleted')
bool get isDeleted => throw _privateConstructorUsedError;
@JsonKey(name: 'created_at')
DateTime? get createdAt => throw _privateConstructorUsedError;
@JsonKey(name: 'updated_at')
DateTime? get updatedAt => throw _privateConstructorUsedError;
/// Serializes this ZipcodeDto to a JSON map.
Map<String, dynamic> toJson() => throw _privateConstructorUsedError;
/// Create a copy of ZipcodeDto
/// with the given fields replaced by the non-null parameter values.
@JsonKey(includeFromJson: false, includeToJson: false)
$ZipcodeDtoCopyWith<ZipcodeDto> get copyWith =>
throw _privateConstructorUsedError;
}
/// @nodoc
abstract class $ZipcodeDtoCopyWith<$Res> {
factory $ZipcodeDtoCopyWith(
ZipcodeDto value, $Res Function(ZipcodeDto) then) =
_$ZipcodeDtoCopyWithImpl<$Res, ZipcodeDto>;
@useResult
$Res call(
{String zipcode,
String sido,
String gu,
@JsonKey(name: 'Etc') String etc,
@JsonKey(name: 'is_deleted') bool isDeleted,
@JsonKey(name: 'created_at') DateTime? createdAt,
@JsonKey(name: 'updated_at') DateTime? updatedAt});
}
/// @nodoc
class _$ZipcodeDtoCopyWithImpl<$Res, $Val extends ZipcodeDto>
implements $ZipcodeDtoCopyWith<$Res> {
_$ZipcodeDtoCopyWithImpl(this._value, this._then);
// ignore: unused_field
final $Val _value;
// ignore: unused_field
final $Res Function($Val) _then;
/// Create a copy of ZipcodeDto
/// with the given fields replaced by the non-null parameter values.
@pragma('vm:prefer-inline')
@override
$Res call({
Object? zipcode = null,
Object? sido = null,
Object? gu = null,
Object? etc = null,
Object? isDeleted = null,
Object? createdAt = freezed,
Object? updatedAt = freezed,
}) {
return _then(_value.copyWith(
zipcode: null == zipcode
? _value.zipcode
: zipcode // ignore: cast_nullable_to_non_nullable
as String,
sido: null == sido
? _value.sido
: sido // ignore: cast_nullable_to_non_nullable
as String,
gu: null == gu
? _value.gu
: gu // ignore: cast_nullable_to_non_nullable
as String,
etc: null == etc
? _value.etc
: etc // ignore: cast_nullable_to_non_nullable
as String,
isDeleted: null == isDeleted
? _value.isDeleted
: isDeleted // ignore: cast_nullable_to_non_nullable
as bool,
createdAt: freezed == createdAt
? _value.createdAt
: createdAt // ignore: cast_nullable_to_non_nullable
as DateTime?,
updatedAt: freezed == updatedAt
? _value.updatedAt
: updatedAt // ignore: cast_nullable_to_non_nullable
as DateTime?,
) as $Val);
}
}
/// @nodoc
abstract class _$$ZipcodeDtoImplCopyWith<$Res>
implements $ZipcodeDtoCopyWith<$Res> {
factory _$$ZipcodeDtoImplCopyWith(
_$ZipcodeDtoImpl value, $Res Function(_$ZipcodeDtoImpl) then) =
__$$ZipcodeDtoImplCopyWithImpl<$Res>;
@override
@useResult
$Res call(
{String zipcode,
String sido,
String gu,
@JsonKey(name: 'Etc') String etc,
@JsonKey(name: 'is_deleted') bool isDeleted,
@JsonKey(name: 'created_at') DateTime? createdAt,
@JsonKey(name: 'updated_at') DateTime? updatedAt});
}
/// @nodoc
class __$$ZipcodeDtoImplCopyWithImpl<$Res>
extends _$ZipcodeDtoCopyWithImpl<$Res, _$ZipcodeDtoImpl>
implements _$$ZipcodeDtoImplCopyWith<$Res> {
__$$ZipcodeDtoImplCopyWithImpl(
_$ZipcodeDtoImpl _value, $Res Function(_$ZipcodeDtoImpl) _then)
: super(_value, _then);
/// Create a copy of ZipcodeDto
/// with the given fields replaced by the non-null parameter values.
@pragma('vm:prefer-inline')
@override
$Res call({
Object? zipcode = null,
Object? sido = null,
Object? gu = null,
Object? etc = null,
Object? isDeleted = null,
Object? createdAt = freezed,
Object? updatedAt = freezed,
}) {
return _then(_$ZipcodeDtoImpl(
zipcode: null == zipcode
? _value.zipcode
: zipcode // ignore: cast_nullable_to_non_nullable
as String,
sido: null == sido
? _value.sido
: sido // ignore: cast_nullable_to_non_nullable
as String,
gu: null == gu
? _value.gu
: gu // ignore: cast_nullable_to_non_nullable
as String,
etc: null == etc
? _value.etc
: etc // ignore: cast_nullable_to_non_nullable
as String,
isDeleted: null == isDeleted
? _value.isDeleted
: isDeleted // ignore: cast_nullable_to_non_nullable
as bool,
createdAt: freezed == createdAt
? _value.createdAt
: createdAt // ignore: cast_nullable_to_non_nullable
as DateTime?,
updatedAt: freezed == updatedAt
? _value.updatedAt
: updatedAt // ignore: cast_nullable_to_non_nullable
as DateTime?,
));
}
}
/// @nodoc
@JsonSerializable()
class _$ZipcodeDtoImpl extends _ZipcodeDto {
const _$ZipcodeDtoImpl(
{required this.zipcode,
required this.sido,
required this.gu,
@JsonKey(name: 'Etc') required this.etc,
@JsonKey(name: 'is_deleted') this.isDeleted = false,
@JsonKey(name: 'created_at') this.createdAt,
@JsonKey(name: 'updated_at') this.updatedAt})
: super._();
factory _$ZipcodeDtoImpl.fromJson(Map<String, dynamic> json) =>
_$$ZipcodeDtoImplFromJson(json);
@override
final String zipcode;
@override
final String sido;
@override
final String gu;
@override
@JsonKey(name: 'Etc')
final String etc;
@override
@JsonKey(name: 'is_deleted')
final bool isDeleted;
@override
@JsonKey(name: 'created_at')
final DateTime? createdAt;
@override
@JsonKey(name: 'updated_at')
final DateTime? updatedAt;
@override
String toString() {
return 'ZipcodeDto(zipcode: $zipcode, sido: $sido, gu: $gu, etc: $etc, isDeleted: $isDeleted, createdAt: $createdAt, updatedAt: $updatedAt)';
}
@override
bool operator ==(Object other) {
return identical(this, other) ||
(other.runtimeType == runtimeType &&
other is _$ZipcodeDtoImpl &&
(identical(other.zipcode, zipcode) || other.zipcode == zipcode) &&
(identical(other.sido, sido) || other.sido == sido) &&
(identical(other.gu, gu) || other.gu == gu) &&
(identical(other.etc, etc) || other.etc == etc) &&
(identical(other.isDeleted, isDeleted) ||
other.isDeleted == isDeleted) &&
(identical(other.createdAt, createdAt) ||
other.createdAt == createdAt) &&
(identical(other.updatedAt, updatedAt) ||
other.updatedAt == updatedAt));
}
@JsonKey(includeFromJson: false, includeToJson: false)
@override
int get hashCode => Object.hash(
runtimeType, zipcode, sido, gu, etc, isDeleted, createdAt, updatedAt);
/// Create a copy of ZipcodeDto
/// with the given fields replaced by the non-null parameter values.
@JsonKey(includeFromJson: false, includeToJson: false)
@override
@pragma('vm:prefer-inline')
_$$ZipcodeDtoImplCopyWith<_$ZipcodeDtoImpl> get copyWith =>
__$$ZipcodeDtoImplCopyWithImpl<_$ZipcodeDtoImpl>(this, _$identity);
@override
Map<String, dynamic> toJson() {
return _$$ZipcodeDtoImplToJson(
this,
);
}
}
abstract class _ZipcodeDto extends ZipcodeDto {
const factory _ZipcodeDto(
{required final String zipcode,
required final String sido,
required final String gu,
@JsonKey(name: 'Etc') required final String etc,
@JsonKey(name: 'is_deleted') final bool isDeleted,
@JsonKey(name: 'created_at') final DateTime? createdAt,
@JsonKey(name: 'updated_at') final DateTime? updatedAt}) =
_$ZipcodeDtoImpl;
const _ZipcodeDto._() : super._();
factory _ZipcodeDto.fromJson(Map<String, dynamic> json) =
_$ZipcodeDtoImpl.fromJson;
@override
String get zipcode;
@override
String get sido;
@override
String get gu;
@override
@JsonKey(name: 'Etc')
String get etc;
@override
@JsonKey(name: 'is_deleted')
bool get isDeleted;
@override
@JsonKey(name: 'created_at')
DateTime? get createdAt;
@override
@JsonKey(name: 'updated_at')
DateTime? get updatedAt;
/// Create a copy of ZipcodeDto
/// with the given fields replaced by the non-null parameter values.
@override
@JsonKey(includeFromJson: false, includeToJson: false)
_$$ZipcodeDtoImplCopyWith<_$ZipcodeDtoImpl> get copyWith =>
throw _privateConstructorUsedError;
}
ZipcodeListResponse _$ZipcodeListResponseFromJson(Map<String, dynamic> json) {
return _ZipcodeListResponse.fromJson(json);
}
/// @nodoc
mixin _$ZipcodeListResponse {
@JsonKey(name: 'data')
List<ZipcodeDto> get items => throw _privateConstructorUsedError;
@JsonKey(name: 'total')
int get totalCount => throw _privateConstructorUsedError;
@JsonKey(name: 'page')
int get currentPage => throw _privateConstructorUsedError;
@JsonKey(name: 'total_pages')
int get totalPages => throw _privateConstructorUsedError;
@JsonKey(name: 'page_size')
int? get pageSize => throw _privateConstructorUsedError;
/// Serializes this ZipcodeListResponse to a JSON map.
Map<String, dynamic> toJson() => throw _privateConstructorUsedError;
/// Create a copy of ZipcodeListResponse
/// with the given fields replaced by the non-null parameter values.
@JsonKey(includeFromJson: false, includeToJson: false)
$ZipcodeListResponseCopyWith<ZipcodeListResponse> get copyWith =>
throw _privateConstructorUsedError;
}
/// @nodoc
abstract class $ZipcodeListResponseCopyWith<$Res> {
factory $ZipcodeListResponseCopyWith(
ZipcodeListResponse value, $Res Function(ZipcodeListResponse) then) =
_$ZipcodeListResponseCopyWithImpl<$Res, ZipcodeListResponse>;
@useResult
$Res call(
{@JsonKey(name: 'data') List<ZipcodeDto> items,
@JsonKey(name: 'total') int totalCount,
@JsonKey(name: 'page') int currentPage,
@JsonKey(name: 'total_pages') int totalPages,
@JsonKey(name: 'page_size') int? pageSize});
}
/// @nodoc
class _$ZipcodeListResponseCopyWithImpl<$Res, $Val extends ZipcodeListResponse>
implements $ZipcodeListResponseCopyWith<$Res> {
_$ZipcodeListResponseCopyWithImpl(this._value, this._then);
// ignore: unused_field
final $Val _value;
// ignore: unused_field
final $Res Function($Val) _then;
/// Create a copy of ZipcodeListResponse
/// with the given fields replaced by the non-null parameter values.
@pragma('vm:prefer-inline')
@override
$Res call({
Object? items = null,
Object? totalCount = null,
Object? currentPage = null,
Object? totalPages = null,
Object? pageSize = freezed,
}) {
return _then(_value.copyWith(
items: null == items
? _value.items
: items // ignore: cast_nullable_to_non_nullable
as List<ZipcodeDto>,
totalCount: null == totalCount
? _value.totalCount
: totalCount // ignore: cast_nullable_to_non_nullable
as int,
currentPage: null == currentPage
? _value.currentPage
: currentPage // ignore: cast_nullable_to_non_nullable
as int,
totalPages: null == totalPages
? _value.totalPages
: totalPages // ignore: cast_nullable_to_non_nullable
as int,
pageSize: freezed == pageSize
? _value.pageSize
: pageSize // ignore: cast_nullable_to_non_nullable
as int?,
) as $Val);
}
}
/// @nodoc
abstract class _$$ZipcodeListResponseImplCopyWith<$Res>
implements $ZipcodeListResponseCopyWith<$Res> {
factory _$$ZipcodeListResponseImplCopyWith(_$ZipcodeListResponseImpl value,
$Res Function(_$ZipcodeListResponseImpl) then) =
__$$ZipcodeListResponseImplCopyWithImpl<$Res>;
@override
@useResult
$Res call(
{@JsonKey(name: 'data') List<ZipcodeDto> items,
@JsonKey(name: 'total') int totalCount,
@JsonKey(name: 'page') int currentPage,
@JsonKey(name: 'total_pages') int totalPages,
@JsonKey(name: 'page_size') int? pageSize});
}
/// @nodoc
class __$$ZipcodeListResponseImplCopyWithImpl<$Res>
extends _$ZipcodeListResponseCopyWithImpl<$Res, _$ZipcodeListResponseImpl>
implements _$$ZipcodeListResponseImplCopyWith<$Res> {
__$$ZipcodeListResponseImplCopyWithImpl(_$ZipcodeListResponseImpl _value,
$Res Function(_$ZipcodeListResponseImpl) _then)
: super(_value, _then);
/// Create a copy of ZipcodeListResponse
/// with the given fields replaced by the non-null parameter values.
@pragma('vm:prefer-inline')
@override
$Res call({
Object? items = null,
Object? totalCount = null,
Object? currentPage = null,
Object? totalPages = null,
Object? pageSize = freezed,
}) {
return _then(_$ZipcodeListResponseImpl(
items: null == items
? _value._items
: items // ignore: cast_nullable_to_non_nullable
as List<ZipcodeDto>,
totalCount: null == totalCount
? _value.totalCount
: totalCount // ignore: cast_nullable_to_non_nullable
as int,
currentPage: null == currentPage
? _value.currentPage
: currentPage // ignore: cast_nullable_to_non_nullable
as int,
totalPages: null == totalPages
? _value.totalPages
: totalPages // ignore: cast_nullable_to_non_nullable
as int,
pageSize: freezed == pageSize
? _value.pageSize
: pageSize // ignore: cast_nullable_to_non_nullable
as int?,
));
}
}
/// @nodoc
@JsonSerializable()
class _$ZipcodeListResponseImpl implements _ZipcodeListResponse {
const _$ZipcodeListResponseImpl(
{@JsonKey(name: 'data') required final List<ZipcodeDto> items,
@JsonKey(name: 'total') required this.totalCount,
@JsonKey(name: 'page') required this.currentPage,
@JsonKey(name: 'total_pages') required this.totalPages,
@JsonKey(name: 'page_size') this.pageSize})
: _items = items;
factory _$ZipcodeListResponseImpl.fromJson(Map<String, dynamic> json) =>
_$$ZipcodeListResponseImplFromJson(json);
final List<ZipcodeDto> _items;
@override
@JsonKey(name: 'data')
List<ZipcodeDto> get items {
if (_items is EqualUnmodifiableListView) return _items;
// ignore: implicit_dynamic_type
return EqualUnmodifiableListView(_items);
}
@override
@JsonKey(name: 'total')
final int totalCount;
@override
@JsonKey(name: 'page')
final int currentPage;
@override
@JsonKey(name: 'total_pages')
final int totalPages;
@override
@JsonKey(name: 'page_size')
final int? pageSize;
@override
String toString() {
return 'ZipcodeListResponse(items: $items, totalCount: $totalCount, currentPage: $currentPage, totalPages: $totalPages, pageSize: $pageSize)';
}
@override
bool operator ==(Object other) {
return identical(this, other) ||
(other.runtimeType == runtimeType &&
other is _$ZipcodeListResponseImpl &&
const DeepCollectionEquality().equals(other._items, _items) &&
(identical(other.totalCount, totalCount) ||
other.totalCount == totalCount) &&
(identical(other.currentPage, currentPage) ||
other.currentPage == currentPage) &&
(identical(other.totalPages, totalPages) ||
other.totalPages == totalPages) &&
(identical(other.pageSize, pageSize) ||
other.pageSize == pageSize));
}
@JsonKey(includeFromJson: false, includeToJson: false)
@override
int get hashCode => Object.hash(
runtimeType,
const DeepCollectionEquality().hash(_items),
totalCount,
currentPage,
totalPages,
pageSize);
/// Create a copy of ZipcodeListResponse
/// with the given fields replaced by the non-null parameter values.
@JsonKey(includeFromJson: false, includeToJson: false)
@override
@pragma('vm:prefer-inline')
_$$ZipcodeListResponseImplCopyWith<_$ZipcodeListResponseImpl> get copyWith =>
__$$ZipcodeListResponseImplCopyWithImpl<_$ZipcodeListResponseImpl>(
this, _$identity);
@override
Map<String, dynamic> toJson() {
return _$$ZipcodeListResponseImplToJson(
this,
);
}
}
abstract class _ZipcodeListResponse implements ZipcodeListResponse {
const factory _ZipcodeListResponse(
{@JsonKey(name: 'data') required final List<ZipcodeDto> items,
@JsonKey(name: 'total') required final int totalCount,
@JsonKey(name: 'page') required final int currentPage,
@JsonKey(name: 'total_pages') required final int totalPages,
@JsonKey(name: 'page_size') final int? pageSize}) =
_$ZipcodeListResponseImpl;
factory _ZipcodeListResponse.fromJson(Map<String, dynamic> json) =
_$ZipcodeListResponseImpl.fromJson;
@override
@JsonKey(name: 'data')
List<ZipcodeDto> get items;
@override
@JsonKey(name: 'total')
int get totalCount;
@override
@JsonKey(name: 'page')
int get currentPage;
@override
@JsonKey(name: 'total_pages')
int get totalPages;
@override
@JsonKey(name: 'page_size')
int? get pageSize;
/// Create a copy of ZipcodeListResponse
/// with the given fields replaced by the non-null parameter values.
@override
@JsonKey(includeFromJson: false, includeToJson: false)
_$$ZipcodeListResponseImplCopyWith<_$ZipcodeListResponseImpl> get copyWith =>
throw _privateConstructorUsedError;
}