1020 lines
33 KiB
Dart
1020 lines
33 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 'administrator_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');
|
|
|
|
AdministratorDto _$AdministratorDtoFromJson(Map<String, dynamic> json) {
|
|
return _AdministratorDto.fromJson(json);
|
|
}
|
|
|
|
/// @nodoc
|
|
mixin _$AdministratorDto {
|
|
int? get id => throw _privateConstructorUsedError;
|
|
String get name => throw _privateConstructorUsedError;
|
|
String get phone => throw _privateConstructorUsedError;
|
|
String get mobile => throw _privateConstructorUsedError;
|
|
String get email => throw _privateConstructorUsedError;
|
|
String get passwd => throw _privateConstructorUsedError;
|
|
|
|
/// Serializes this AdministratorDto to a JSON map.
|
|
Map<String, dynamic> toJson() => throw _privateConstructorUsedError;
|
|
|
|
/// Create a copy of AdministratorDto
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@JsonKey(includeFromJson: false, includeToJson: false)
|
|
$AdministratorDtoCopyWith<AdministratorDto> get copyWith =>
|
|
throw _privateConstructorUsedError;
|
|
}
|
|
|
|
/// @nodoc
|
|
abstract class $AdministratorDtoCopyWith<$Res> {
|
|
factory $AdministratorDtoCopyWith(
|
|
AdministratorDto value, $Res Function(AdministratorDto) then) =
|
|
_$AdministratorDtoCopyWithImpl<$Res, AdministratorDto>;
|
|
@useResult
|
|
$Res call(
|
|
{int? id,
|
|
String name,
|
|
String phone,
|
|
String mobile,
|
|
String email,
|
|
String passwd});
|
|
}
|
|
|
|
/// @nodoc
|
|
class _$AdministratorDtoCopyWithImpl<$Res, $Val extends AdministratorDto>
|
|
implements $AdministratorDtoCopyWith<$Res> {
|
|
_$AdministratorDtoCopyWithImpl(this._value, this._then);
|
|
|
|
// ignore: unused_field
|
|
final $Val _value;
|
|
// ignore: unused_field
|
|
final $Res Function($Val) _then;
|
|
|
|
/// Create a copy of AdministratorDto
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@pragma('vm:prefer-inline')
|
|
@override
|
|
$Res call({
|
|
Object? id = freezed,
|
|
Object? name = null,
|
|
Object? phone = null,
|
|
Object? mobile = null,
|
|
Object? email = null,
|
|
Object? passwd = null,
|
|
}) {
|
|
return _then(_value.copyWith(
|
|
id: freezed == id
|
|
? _value.id
|
|
: id // ignore: cast_nullable_to_non_nullable
|
|
as int?,
|
|
name: null == name
|
|
? _value.name
|
|
: name // ignore: cast_nullable_to_non_nullable
|
|
as String,
|
|
phone: null == phone
|
|
? _value.phone
|
|
: phone // ignore: cast_nullable_to_non_nullable
|
|
as String,
|
|
mobile: null == mobile
|
|
? _value.mobile
|
|
: mobile // ignore: cast_nullable_to_non_nullable
|
|
as String,
|
|
email: null == email
|
|
? _value.email
|
|
: email // ignore: cast_nullable_to_non_nullable
|
|
as String,
|
|
passwd: null == passwd
|
|
? _value.passwd
|
|
: passwd // ignore: cast_nullable_to_non_nullable
|
|
as String,
|
|
) as $Val);
|
|
}
|
|
}
|
|
|
|
/// @nodoc
|
|
abstract class _$$AdministratorDtoImplCopyWith<$Res>
|
|
implements $AdministratorDtoCopyWith<$Res> {
|
|
factory _$$AdministratorDtoImplCopyWith(_$AdministratorDtoImpl value,
|
|
$Res Function(_$AdministratorDtoImpl) then) =
|
|
__$$AdministratorDtoImplCopyWithImpl<$Res>;
|
|
@override
|
|
@useResult
|
|
$Res call(
|
|
{int? id,
|
|
String name,
|
|
String phone,
|
|
String mobile,
|
|
String email,
|
|
String passwd});
|
|
}
|
|
|
|
/// @nodoc
|
|
class __$$AdministratorDtoImplCopyWithImpl<$Res>
|
|
extends _$AdministratorDtoCopyWithImpl<$Res, _$AdministratorDtoImpl>
|
|
implements _$$AdministratorDtoImplCopyWith<$Res> {
|
|
__$$AdministratorDtoImplCopyWithImpl(_$AdministratorDtoImpl _value,
|
|
$Res Function(_$AdministratorDtoImpl) _then)
|
|
: super(_value, _then);
|
|
|
|
/// Create a copy of AdministratorDto
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@pragma('vm:prefer-inline')
|
|
@override
|
|
$Res call({
|
|
Object? id = freezed,
|
|
Object? name = null,
|
|
Object? phone = null,
|
|
Object? mobile = null,
|
|
Object? email = null,
|
|
Object? passwd = null,
|
|
}) {
|
|
return _then(_$AdministratorDtoImpl(
|
|
id: freezed == id
|
|
? _value.id
|
|
: id // ignore: cast_nullable_to_non_nullable
|
|
as int?,
|
|
name: null == name
|
|
? _value.name
|
|
: name // ignore: cast_nullable_to_non_nullable
|
|
as String,
|
|
phone: null == phone
|
|
? _value.phone
|
|
: phone // ignore: cast_nullable_to_non_nullable
|
|
as String,
|
|
mobile: null == mobile
|
|
? _value.mobile
|
|
: mobile // ignore: cast_nullable_to_non_nullable
|
|
as String,
|
|
email: null == email
|
|
? _value.email
|
|
: email // ignore: cast_nullable_to_non_nullable
|
|
as String,
|
|
passwd: null == passwd
|
|
? _value.passwd
|
|
: passwd // ignore: cast_nullable_to_non_nullable
|
|
as String,
|
|
));
|
|
}
|
|
}
|
|
|
|
/// @nodoc
|
|
@JsonSerializable()
|
|
class _$AdministratorDtoImpl extends _AdministratorDto {
|
|
const _$AdministratorDtoImpl(
|
|
{this.id,
|
|
required this.name,
|
|
required this.phone,
|
|
required this.mobile,
|
|
required this.email,
|
|
required this.passwd})
|
|
: super._();
|
|
|
|
factory _$AdministratorDtoImpl.fromJson(Map<String, dynamic> json) =>
|
|
_$$AdministratorDtoImplFromJson(json);
|
|
|
|
@override
|
|
final int? id;
|
|
@override
|
|
final String name;
|
|
@override
|
|
final String phone;
|
|
@override
|
|
final String mobile;
|
|
@override
|
|
final String email;
|
|
@override
|
|
final String passwd;
|
|
|
|
@override
|
|
String toString() {
|
|
return 'AdministratorDto(id: $id, name: $name, phone: $phone, mobile: $mobile, email: $email, passwd: $passwd)';
|
|
}
|
|
|
|
@override
|
|
bool operator ==(Object other) {
|
|
return identical(this, other) ||
|
|
(other.runtimeType == runtimeType &&
|
|
other is _$AdministratorDtoImpl &&
|
|
(identical(other.id, id) || other.id == id) &&
|
|
(identical(other.name, name) || other.name == name) &&
|
|
(identical(other.phone, phone) || other.phone == phone) &&
|
|
(identical(other.mobile, mobile) || other.mobile == mobile) &&
|
|
(identical(other.email, email) || other.email == email) &&
|
|
(identical(other.passwd, passwd) || other.passwd == passwd));
|
|
}
|
|
|
|
@JsonKey(includeFromJson: false, includeToJson: false)
|
|
@override
|
|
int get hashCode =>
|
|
Object.hash(runtimeType, id, name, phone, mobile, email, passwd);
|
|
|
|
/// Create a copy of AdministratorDto
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@JsonKey(includeFromJson: false, includeToJson: false)
|
|
@override
|
|
@pragma('vm:prefer-inline')
|
|
_$$AdministratorDtoImplCopyWith<_$AdministratorDtoImpl> get copyWith =>
|
|
__$$AdministratorDtoImplCopyWithImpl<_$AdministratorDtoImpl>(
|
|
this, _$identity);
|
|
|
|
@override
|
|
Map<String, dynamic> toJson() {
|
|
return _$$AdministratorDtoImplToJson(
|
|
this,
|
|
);
|
|
}
|
|
}
|
|
|
|
abstract class _AdministratorDto extends AdministratorDto {
|
|
const factory _AdministratorDto(
|
|
{final int? id,
|
|
required final String name,
|
|
required final String phone,
|
|
required final String mobile,
|
|
required final String email,
|
|
required final String passwd}) = _$AdministratorDtoImpl;
|
|
const _AdministratorDto._() : super._();
|
|
|
|
factory _AdministratorDto.fromJson(Map<String, dynamic> json) =
|
|
_$AdministratorDtoImpl.fromJson;
|
|
|
|
@override
|
|
int? get id;
|
|
@override
|
|
String get name;
|
|
@override
|
|
String get phone;
|
|
@override
|
|
String get mobile;
|
|
@override
|
|
String get email;
|
|
@override
|
|
String get passwd;
|
|
|
|
/// Create a copy of AdministratorDto
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@override
|
|
@JsonKey(includeFromJson: false, includeToJson: false)
|
|
_$$AdministratorDtoImplCopyWith<_$AdministratorDtoImpl> get copyWith =>
|
|
throw _privateConstructorUsedError;
|
|
}
|
|
|
|
AdministratorRequestDto _$AdministratorRequestDtoFromJson(
|
|
Map<String, dynamic> json) {
|
|
return _AdministratorRequestDto.fromJson(json);
|
|
}
|
|
|
|
/// @nodoc
|
|
mixin _$AdministratorRequestDto {
|
|
String get name => throw _privateConstructorUsedError;
|
|
String get phone => throw _privateConstructorUsedError;
|
|
String get mobile => throw _privateConstructorUsedError;
|
|
String get email => throw _privateConstructorUsedError;
|
|
String get passwd => throw _privateConstructorUsedError;
|
|
|
|
/// Serializes this AdministratorRequestDto to a JSON map.
|
|
Map<String, dynamic> toJson() => throw _privateConstructorUsedError;
|
|
|
|
/// Create a copy of AdministratorRequestDto
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@JsonKey(includeFromJson: false, includeToJson: false)
|
|
$AdministratorRequestDtoCopyWith<AdministratorRequestDto> get copyWith =>
|
|
throw _privateConstructorUsedError;
|
|
}
|
|
|
|
/// @nodoc
|
|
abstract class $AdministratorRequestDtoCopyWith<$Res> {
|
|
factory $AdministratorRequestDtoCopyWith(AdministratorRequestDto value,
|
|
$Res Function(AdministratorRequestDto) then) =
|
|
_$AdministratorRequestDtoCopyWithImpl<$Res, AdministratorRequestDto>;
|
|
@useResult
|
|
$Res call(
|
|
{String name, String phone, String mobile, String email, String passwd});
|
|
}
|
|
|
|
/// @nodoc
|
|
class _$AdministratorRequestDtoCopyWithImpl<$Res,
|
|
$Val extends AdministratorRequestDto>
|
|
implements $AdministratorRequestDtoCopyWith<$Res> {
|
|
_$AdministratorRequestDtoCopyWithImpl(this._value, this._then);
|
|
|
|
// ignore: unused_field
|
|
final $Val _value;
|
|
// ignore: unused_field
|
|
final $Res Function($Val) _then;
|
|
|
|
/// Create a copy of AdministratorRequestDto
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@pragma('vm:prefer-inline')
|
|
@override
|
|
$Res call({
|
|
Object? name = null,
|
|
Object? phone = null,
|
|
Object? mobile = null,
|
|
Object? email = null,
|
|
Object? passwd = null,
|
|
}) {
|
|
return _then(_value.copyWith(
|
|
name: null == name
|
|
? _value.name
|
|
: name // ignore: cast_nullable_to_non_nullable
|
|
as String,
|
|
phone: null == phone
|
|
? _value.phone
|
|
: phone // ignore: cast_nullable_to_non_nullable
|
|
as String,
|
|
mobile: null == mobile
|
|
? _value.mobile
|
|
: mobile // ignore: cast_nullable_to_non_nullable
|
|
as String,
|
|
email: null == email
|
|
? _value.email
|
|
: email // ignore: cast_nullable_to_non_nullable
|
|
as String,
|
|
passwd: null == passwd
|
|
? _value.passwd
|
|
: passwd // ignore: cast_nullable_to_non_nullable
|
|
as String,
|
|
) as $Val);
|
|
}
|
|
}
|
|
|
|
/// @nodoc
|
|
abstract class _$$AdministratorRequestDtoImplCopyWith<$Res>
|
|
implements $AdministratorRequestDtoCopyWith<$Res> {
|
|
factory _$$AdministratorRequestDtoImplCopyWith(
|
|
_$AdministratorRequestDtoImpl value,
|
|
$Res Function(_$AdministratorRequestDtoImpl) then) =
|
|
__$$AdministratorRequestDtoImplCopyWithImpl<$Res>;
|
|
@override
|
|
@useResult
|
|
$Res call(
|
|
{String name, String phone, String mobile, String email, String passwd});
|
|
}
|
|
|
|
/// @nodoc
|
|
class __$$AdministratorRequestDtoImplCopyWithImpl<$Res>
|
|
extends _$AdministratorRequestDtoCopyWithImpl<$Res,
|
|
_$AdministratorRequestDtoImpl>
|
|
implements _$$AdministratorRequestDtoImplCopyWith<$Res> {
|
|
__$$AdministratorRequestDtoImplCopyWithImpl(
|
|
_$AdministratorRequestDtoImpl _value,
|
|
$Res Function(_$AdministratorRequestDtoImpl) _then)
|
|
: super(_value, _then);
|
|
|
|
/// Create a copy of AdministratorRequestDto
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@pragma('vm:prefer-inline')
|
|
@override
|
|
$Res call({
|
|
Object? name = null,
|
|
Object? phone = null,
|
|
Object? mobile = null,
|
|
Object? email = null,
|
|
Object? passwd = null,
|
|
}) {
|
|
return _then(_$AdministratorRequestDtoImpl(
|
|
name: null == name
|
|
? _value.name
|
|
: name // ignore: cast_nullable_to_non_nullable
|
|
as String,
|
|
phone: null == phone
|
|
? _value.phone
|
|
: phone // ignore: cast_nullable_to_non_nullable
|
|
as String,
|
|
mobile: null == mobile
|
|
? _value.mobile
|
|
: mobile // ignore: cast_nullable_to_non_nullable
|
|
as String,
|
|
email: null == email
|
|
? _value.email
|
|
: email // ignore: cast_nullable_to_non_nullable
|
|
as String,
|
|
passwd: null == passwd
|
|
? _value.passwd
|
|
: passwd // ignore: cast_nullable_to_non_nullable
|
|
as String,
|
|
));
|
|
}
|
|
}
|
|
|
|
/// @nodoc
|
|
@JsonSerializable()
|
|
class _$AdministratorRequestDtoImpl implements _AdministratorRequestDto {
|
|
const _$AdministratorRequestDtoImpl(
|
|
{required this.name,
|
|
required this.phone,
|
|
required this.mobile,
|
|
required this.email,
|
|
required this.passwd});
|
|
|
|
factory _$AdministratorRequestDtoImpl.fromJson(Map<String, dynamic> json) =>
|
|
_$$AdministratorRequestDtoImplFromJson(json);
|
|
|
|
@override
|
|
final String name;
|
|
@override
|
|
final String phone;
|
|
@override
|
|
final String mobile;
|
|
@override
|
|
final String email;
|
|
@override
|
|
final String passwd;
|
|
|
|
@override
|
|
String toString() {
|
|
return 'AdministratorRequestDto(name: $name, phone: $phone, mobile: $mobile, email: $email, passwd: $passwd)';
|
|
}
|
|
|
|
@override
|
|
bool operator ==(Object other) {
|
|
return identical(this, other) ||
|
|
(other.runtimeType == runtimeType &&
|
|
other is _$AdministratorRequestDtoImpl &&
|
|
(identical(other.name, name) || other.name == name) &&
|
|
(identical(other.phone, phone) || other.phone == phone) &&
|
|
(identical(other.mobile, mobile) || other.mobile == mobile) &&
|
|
(identical(other.email, email) || other.email == email) &&
|
|
(identical(other.passwd, passwd) || other.passwd == passwd));
|
|
}
|
|
|
|
@JsonKey(includeFromJson: false, includeToJson: false)
|
|
@override
|
|
int get hashCode =>
|
|
Object.hash(runtimeType, name, phone, mobile, email, passwd);
|
|
|
|
/// Create a copy of AdministratorRequestDto
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@JsonKey(includeFromJson: false, includeToJson: false)
|
|
@override
|
|
@pragma('vm:prefer-inline')
|
|
_$$AdministratorRequestDtoImplCopyWith<_$AdministratorRequestDtoImpl>
|
|
get copyWith => __$$AdministratorRequestDtoImplCopyWithImpl<
|
|
_$AdministratorRequestDtoImpl>(this, _$identity);
|
|
|
|
@override
|
|
Map<String, dynamic> toJson() {
|
|
return _$$AdministratorRequestDtoImplToJson(
|
|
this,
|
|
);
|
|
}
|
|
}
|
|
|
|
abstract class _AdministratorRequestDto implements AdministratorRequestDto {
|
|
const factory _AdministratorRequestDto(
|
|
{required final String name,
|
|
required final String phone,
|
|
required final String mobile,
|
|
required final String email,
|
|
required final String passwd}) = _$AdministratorRequestDtoImpl;
|
|
|
|
factory _AdministratorRequestDto.fromJson(Map<String, dynamic> json) =
|
|
_$AdministratorRequestDtoImpl.fromJson;
|
|
|
|
@override
|
|
String get name;
|
|
@override
|
|
String get phone;
|
|
@override
|
|
String get mobile;
|
|
@override
|
|
String get email;
|
|
@override
|
|
String get passwd;
|
|
|
|
/// Create a copy of AdministratorRequestDto
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@override
|
|
@JsonKey(includeFromJson: false, includeToJson: false)
|
|
_$$AdministratorRequestDtoImplCopyWith<_$AdministratorRequestDtoImpl>
|
|
get copyWith => throw _privateConstructorUsedError;
|
|
}
|
|
|
|
AdministratorUpdateRequestDto _$AdministratorUpdateRequestDtoFromJson(
|
|
Map<String, dynamic> json) {
|
|
return _AdministratorUpdateRequestDto.fromJson(json);
|
|
}
|
|
|
|
/// @nodoc
|
|
mixin _$AdministratorUpdateRequestDto {
|
|
String? get name => throw _privateConstructorUsedError;
|
|
String? get phone => throw _privateConstructorUsedError;
|
|
String? get mobile => throw _privateConstructorUsedError;
|
|
String? get email => throw _privateConstructorUsedError;
|
|
String? get passwd => throw _privateConstructorUsedError;
|
|
|
|
/// Serializes this AdministratorUpdateRequestDto to a JSON map.
|
|
Map<String, dynamic> toJson() => throw _privateConstructorUsedError;
|
|
|
|
/// Create a copy of AdministratorUpdateRequestDto
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@JsonKey(includeFromJson: false, includeToJson: false)
|
|
$AdministratorUpdateRequestDtoCopyWith<AdministratorUpdateRequestDto>
|
|
get copyWith => throw _privateConstructorUsedError;
|
|
}
|
|
|
|
/// @nodoc
|
|
abstract class $AdministratorUpdateRequestDtoCopyWith<$Res> {
|
|
factory $AdministratorUpdateRequestDtoCopyWith(
|
|
AdministratorUpdateRequestDto value,
|
|
$Res Function(AdministratorUpdateRequestDto) then) =
|
|
_$AdministratorUpdateRequestDtoCopyWithImpl<$Res,
|
|
AdministratorUpdateRequestDto>;
|
|
@useResult
|
|
$Res call(
|
|
{String? name,
|
|
String? phone,
|
|
String? mobile,
|
|
String? email,
|
|
String? passwd});
|
|
}
|
|
|
|
/// @nodoc
|
|
class _$AdministratorUpdateRequestDtoCopyWithImpl<$Res,
|
|
$Val extends AdministratorUpdateRequestDto>
|
|
implements $AdministratorUpdateRequestDtoCopyWith<$Res> {
|
|
_$AdministratorUpdateRequestDtoCopyWithImpl(this._value, this._then);
|
|
|
|
// ignore: unused_field
|
|
final $Val _value;
|
|
// ignore: unused_field
|
|
final $Res Function($Val) _then;
|
|
|
|
/// Create a copy of AdministratorUpdateRequestDto
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@pragma('vm:prefer-inline')
|
|
@override
|
|
$Res call({
|
|
Object? name = freezed,
|
|
Object? phone = freezed,
|
|
Object? mobile = freezed,
|
|
Object? email = freezed,
|
|
Object? passwd = freezed,
|
|
}) {
|
|
return _then(_value.copyWith(
|
|
name: freezed == name
|
|
? _value.name
|
|
: name // ignore: cast_nullable_to_non_nullable
|
|
as String?,
|
|
phone: freezed == phone
|
|
? _value.phone
|
|
: phone // ignore: cast_nullable_to_non_nullable
|
|
as String?,
|
|
mobile: freezed == mobile
|
|
? _value.mobile
|
|
: mobile // ignore: cast_nullable_to_non_nullable
|
|
as String?,
|
|
email: freezed == email
|
|
? _value.email
|
|
: email // ignore: cast_nullable_to_non_nullable
|
|
as String?,
|
|
passwd: freezed == passwd
|
|
? _value.passwd
|
|
: passwd // ignore: cast_nullable_to_non_nullable
|
|
as String?,
|
|
) as $Val);
|
|
}
|
|
}
|
|
|
|
/// @nodoc
|
|
abstract class _$$AdministratorUpdateRequestDtoImplCopyWith<$Res>
|
|
implements $AdministratorUpdateRequestDtoCopyWith<$Res> {
|
|
factory _$$AdministratorUpdateRequestDtoImplCopyWith(
|
|
_$AdministratorUpdateRequestDtoImpl value,
|
|
$Res Function(_$AdministratorUpdateRequestDtoImpl) then) =
|
|
__$$AdministratorUpdateRequestDtoImplCopyWithImpl<$Res>;
|
|
@override
|
|
@useResult
|
|
$Res call(
|
|
{String? name,
|
|
String? phone,
|
|
String? mobile,
|
|
String? email,
|
|
String? passwd});
|
|
}
|
|
|
|
/// @nodoc
|
|
class __$$AdministratorUpdateRequestDtoImplCopyWithImpl<$Res>
|
|
extends _$AdministratorUpdateRequestDtoCopyWithImpl<$Res,
|
|
_$AdministratorUpdateRequestDtoImpl>
|
|
implements _$$AdministratorUpdateRequestDtoImplCopyWith<$Res> {
|
|
__$$AdministratorUpdateRequestDtoImplCopyWithImpl(
|
|
_$AdministratorUpdateRequestDtoImpl _value,
|
|
$Res Function(_$AdministratorUpdateRequestDtoImpl) _then)
|
|
: super(_value, _then);
|
|
|
|
/// Create a copy of AdministratorUpdateRequestDto
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@pragma('vm:prefer-inline')
|
|
@override
|
|
$Res call({
|
|
Object? name = freezed,
|
|
Object? phone = freezed,
|
|
Object? mobile = freezed,
|
|
Object? email = freezed,
|
|
Object? passwd = freezed,
|
|
}) {
|
|
return _then(_$AdministratorUpdateRequestDtoImpl(
|
|
name: freezed == name
|
|
? _value.name
|
|
: name // ignore: cast_nullable_to_non_nullable
|
|
as String?,
|
|
phone: freezed == phone
|
|
? _value.phone
|
|
: phone // ignore: cast_nullable_to_non_nullable
|
|
as String?,
|
|
mobile: freezed == mobile
|
|
? _value.mobile
|
|
: mobile // ignore: cast_nullable_to_non_nullable
|
|
as String?,
|
|
email: freezed == email
|
|
? _value.email
|
|
: email // ignore: cast_nullable_to_non_nullable
|
|
as String?,
|
|
passwd: freezed == passwd
|
|
? _value.passwd
|
|
: passwd // ignore: cast_nullable_to_non_nullable
|
|
as String?,
|
|
));
|
|
}
|
|
}
|
|
|
|
/// @nodoc
|
|
@JsonSerializable()
|
|
class _$AdministratorUpdateRequestDtoImpl
|
|
implements _AdministratorUpdateRequestDto {
|
|
const _$AdministratorUpdateRequestDtoImpl(
|
|
{this.name, this.phone, this.mobile, this.email, this.passwd});
|
|
|
|
factory _$AdministratorUpdateRequestDtoImpl.fromJson(
|
|
Map<String, dynamic> json) =>
|
|
_$$AdministratorUpdateRequestDtoImplFromJson(json);
|
|
|
|
@override
|
|
final String? name;
|
|
@override
|
|
final String? phone;
|
|
@override
|
|
final String? mobile;
|
|
@override
|
|
final String? email;
|
|
@override
|
|
final String? passwd;
|
|
|
|
@override
|
|
String toString() {
|
|
return 'AdministratorUpdateRequestDto(name: $name, phone: $phone, mobile: $mobile, email: $email, passwd: $passwd)';
|
|
}
|
|
|
|
@override
|
|
bool operator ==(Object other) {
|
|
return identical(this, other) ||
|
|
(other.runtimeType == runtimeType &&
|
|
other is _$AdministratorUpdateRequestDtoImpl &&
|
|
(identical(other.name, name) || other.name == name) &&
|
|
(identical(other.phone, phone) || other.phone == phone) &&
|
|
(identical(other.mobile, mobile) || other.mobile == mobile) &&
|
|
(identical(other.email, email) || other.email == email) &&
|
|
(identical(other.passwd, passwd) || other.passwd == passwd));
|
|
}
|
|
|
|
@JsonKey(includeFromJson: false, includeToJson: false)
|
|
@override
|
|
int get hashCode =>
|
|
Object.hash(runtimeType, name, phone, mobile, email, passwd);
|
|
|
|
/// Create a copy of AdministratorUpdateRequestDto
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@JsonKey(includeFromJson: false, includeToJson: false)
|
|
@override
|
|
@pragma('vm:prefer-inline')
|
|
_$$AdministratorUpdateRequestDtoImplCopyWith<
|
|
_$AdministratorUpdateRequestDtoImpl>
|
|
get copyWith => __$$AdministratorUpdateRequestDtoImplCopyWithImpl<
|
|
_$AdministratorUpdateRequestDtoImpl>(this, _$identity);
|
|
|
|
@override
|
|
Map<String, dynamic> toJson() {
|
|
return _$$AdministratorUpdateRequestDtoImplToJson(
|
|
this,
|
|
);
|
|
}
|
|
}
|
|
|
|
abstract class _AdministratorUpdateRequestDto
|
|
implements AdministratorUpdateRequestDto {
|
|
const factory _AdministratorUpdateRequestDto(
|
|
{final String? name,
|
|
final String? phone,
|
|
final String? mobile,
|
|
final String? email,
|
|
final String? passwd}) = _$AdministratorUpdateRequestDtoImpl;
|
|
|
|
factory _AdministratorUpdateRequestDto.fromJson(Map<String, dynamic> json) =
|
|
_$AdministratorUpdateRequestDtoImpl.fromJson;
|
|
|
|
@override
|
|
String? get name;
|
|
@override
|
|
String? get phone;
|
|
@override
|
|
String? get mobile;
|
|
@override
|
|
String? get email;
|
|
@override
|
|
String? get passwd;
|
|
|
|
/// Create a copy of AdministratorUpdateRequestDto
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@override
|
|
@JsonKey(includeFromJson: false, includeToJson: false)
|
|
_$$AdministratorUpdateRequestDtoImplCopyWith<
|
|
_$AdministratorUpdateRequestDtoImpl>
|
|
get copyWith => throw _privateConstructorUsedError;
|
|
}
|
|
|
|
AdministratorListResponse _$AdministratorListResponseFromJson(
|
|
Map<String, dynamic> json) {
|
|
return _AdministratorListResponse.fromJson(json);
|
|
}
|
|
|
|
/// @nodoc
|
|
mixin _$AdministratorListResponse {
|
|
@JsonKey(name: 'data')
|
|
List<AdministratorDto> 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 AdministratorListResponse to a JSON map.
|
|
Map<String, dynamic> toJson() => throw _privateConstructorUsedError;
|
|
|
|
/// Create a copy of AdministratorListResponse
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@JsonKey(includeFromJson: false, includeToJson: false)
|
|
$AdministratorListResponseCopyWith<AdministratorListResponse> get copyWith =>
|
|
throw _privateConstructorUsedError;
|
|
}
|
|
|
|
/// @nodoc
|
|
abstract class $AdministratorListResponseCopyWith<$Res> {
|
|
factory $AdministratorListResponseCopyWith(AdministratorListResponse value,
|
|
$Res Function(AdministratorListResponse) then) =
|
|
_$AdministratorListResponseCopyWithImpl<$Res, AdministratorListResponse>;
|
|
@useResult
|
|
$Res call(
|
|
{@JsonKey(name: 'data') List<AdministratorDto> 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 _$AdministratorListResponseCopyWithImpl<$Res,
|
|
$Val extends AdministratorListResponse>
|
|
implements $AdministratorListResponseCopyWith<$Res> {
|
|
_$AdministratorListResponseCopyWithImpl(this._value, this._then);
|
|
|
|
// ignore: unused_field
|
|
final $Val _value;
|
|
// ignore: unused_field
|
|
final $Res Function($Val) _then;
|
|
|
|
/// Create a copy of AdministratorListResponse
|
|
/// 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<AdministratorDto>,
|
|
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 _$$AdministratorListResponseImplCopyWith<$Res>
|
|
implements $AdministratorListResponseCopyWith<$Res> {
|
|
factory _$$AdministratorListResponseImplCopyWith(
|
|
_$AdministratorListResponseImpl value,
|
|
$Res Function(_$AdministratorListResponseImpl) then) =
|
|
__$$AdministratorListResponseImplCopyWithImpl<$Res>;
|
|
@override
|
|
@useResult
|
|
$Res call(
|
|
{@JsonKey(name: 'data') List<AdministratorDto> 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 __$$AdministratorListResponseImplCopyWithImpl<$Res>
|
|
extends _$AdministratorListResponseCopyWithImpl<$Res,
|
|
_$AdministratorListResponseImpl>
|
|
implements _$$AdministratorListResponseImplCopyWith<$Res> {
|
|
__$$AdministratorListResponseImplCopyWithImpl(
|
|
_$AdministratorListResponseImpl _value,
|
|
$Res Function(_$AdministratorListResponseImpl) _then)
|
|
: super(_value, _then);
|
|
|
|
/// Create a copy of AdministratorListResponse
|
|
/// 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(_$AdministratorListResponseImpl(
|
|
items: null == items
|
|
? _value._items
|
|
: items // ignore: cast_nullable_to_non_nullable
|
|
as List<AdministratorDto>,
|
|
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 _$AdministratorListResponseImpl implements _AdministratorListResponse {
|
|
const _$AdministratorListResponseImpl(
|
|
{@JsonKey(name: 'data') required final List<AdministratorDto> 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 _$AdministratorListResponseImpl.fromJson(Map<String, dynamic> json) =>
|
|
_$$AdministratorListResponseImplFromJson(json);
|
|
|
|
final List<AdministratorDto> _items;
|
|
@override
|
|
@JsonKey(name: 'data')
|
|
List<AdministratorDto> 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 'AdministratorListResponse(items: $items, totalCount: $totalCount, currentPage: $currentPage, totalPages: $totalPages, pageSize: $pageSize)';
|
|
}
|
|
|
|
@override
|
|
bool operator ==(Object other) {
|
|
return identical(this, other) ||
|
|
(other.runtimeType == runtimeType &&
|
|
other is _$AdministratorListResponseImpl &&
|
|
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 AdministratorListResponse
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@JsonKey(includeFromJson: false, includeToJson: false)
|
|
@override
|
|
@pragma('vm:prefer-inline')
|
|
_$$AdministratorListResponseImplCopyWith<_$AdministratorListResponseImpl>
|
|
get copyWith => __$$AdministratorListResponseImplCopyWithImpl<
|
|
_$AdministratorListResponseImpl>(this, _$identity);
|
|
|
|
@override
|
|
Map<String, dynamic> toJson() {
|
|
return _$$AdministratorListResponseImplToJson(
|
|
this,
|
|
);
|
|
}
|
|
}
|
|
|
|
abstract class _AdministratorListResponse implements AdministratorListResponse {
|
|
const factory _AdministratorListResponse(
|
|
{@JsonKey(name: 'data') required final List<AdministratorDto> 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}) =
|
|
_$AdministratorListResponseImpl;
|
|
|
|
factory _AdministratorListResponse.fromJson(Map<String, dynamic> json) =
|
|
_$AdministratorListResponseImpl.fromJson;
|
|
|
|
@override
|
|
@JsonKey(name: 'data')
|
|
List<AdministratorDto> 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 AdministratorListResponse
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@override
|
|
@JsonKey(includeFromJson: false, includeToJson: false)
|
|
_$$AdministratorListResponseImplCopyWith<_$AdministratorListResponseImpl>
|
|
get copyWith => throw _privateConstructorUsedError;
|
|
}
|