// 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 'entities.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#custom-getters-and-methods'); Account _$AccountFromJson(Map json) { return _Account.fromJson(json); } /// @nodoc mixin _$Account { Profile get profile => throw _privateConstructorUsedError; Identity get identity => throw _privateConstructorUsedError; Map toJson() => throw _privateConstructorUsedError; @JsonKey(ignore: true) $AccountCopyWith get copyWith => throw _privateConstructorUsedError; } /// @nodoc abstract class $AccountCopyWith<$Res> { factory $AccountCopyWith(Account value, $Res Function(Account) then) = _$AccountCopyWithImpl<$Res, Account>; @useResult $Res call({Profile profile, Identity identity}); $ProfileCopyWith<$Res> get profile; $IdentityCopyWith<$Res> get identity; } /// @nodoc class _$AccountCopyWithImpl<$Res, $Val extends Account> implements $AccountCopyWith<$Res> { _$AccountCopyWithImpl(this._value, this._then); // ignore: unused_field final $Val _value; // ignore: unused_field final $Res Function($Val) _then; @pragma('vm:prefer-inline') @override $Res call({ Object? profile = null, Object? identity = null, }) { return _then(_value.copyWith( profile: null == profile ? _value.profile : profile // ignore: cast_nullable_to_non_nullable as Profile, identity: null == identity ? _value.identity : identity // ignore: cast_nullable_to_non_nullable as Identity, ) as $Val); } @override @pragma('vm:prefer-inline') $ProfileCopyWith<$Res> get profile { return $ProfileCopyWith<$Res>(_value.profile, (value) { return _then(_value.copyWith(profile: value) as $Val); }); } @override @pragma('vm:prefer-inline') $IdentityCopyWith<$Res> get identity { return $IdentityCopyWith<$Res>(_value.identity, (value) { return _then(_value.copyWith(identity: value) as $Val); }); } } /// @nodoc abstract class _$$_AccountCopyWith<$Res> implements $AccountCopyWith<$Res> { factory _$$_AccountCopyWith( _$_Account value, $Res Function(_$_Account) then) = __$$_AccountCopyWithImpl<$Res>; @override @useResult $Res call({Profile profile, Identity identity}); @override $ProfileCopyWith<$Res> get profile; @override $IdentityCopyWith<$Res> get identity; } /// @nodoc class __$$_AccountCopyWithImpl<$Res> extends _$AccountCopyWithImpl<$Res, _$_Account> implements _$$_AccountCopyWith<$Res> { __$$_AccountCopyWithImpl(_$_Account _value, $Res Function(_$_Account) _then) : super(_value, _then); @pragma('vm:prefer-inline') @override $Res call({ Object? profile = null, Object? identity = null, }) { return _then(_$_Account( profile: null == profile ? _value.profile : profile // ignore: cast_nullable_to_non_nullable as Profile, identity: null == identity ? _value.identity : identity // ignore: cast_nullable_to_non_nullable as Identity, )); } } /// @nodoc @JsonSerializable() class _$_Account implements _Account { const _$_Account({required this.profile, required this.identity}); factory _$_Account.fromJson(Map json) => _$$_AccountFromJson(json); @override final Profile profile; @override final Identity identity; @override String toString() { return 'Account(profile: $profile, identity: $identity)'; } @override bool operator ==(dynamic other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _$_Account && (identical(other.profile, profile) || other.profile == profile) && (identical(other.identity, identity) || other.identity == identity)); } @JsonKey(ignore: true) @override int get hashCode => Object.hash(runtimeType, profile, identity); @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') _$$_AccountCopyWith<_$_Account> get copyWith => __$$_AccountCopyWithImpl<_$_Account>(this, _$identity); @override Map toJson() { return _$$_AccountToJson( this, ); } } abstract class _Account implements Account { const factory _Account( {required final Profile profile, required final Identity identity}) = _$_Account; factory _Account.fromJson(Map json) = _$_Account.fromJson; @override Profile get profile; @override Identity get identity; @override @JsonKey(ignore: true) _$$_AccountCopyWith<_$_Account> get copyWith => throw _privateConstructorUsedError; } Contact _$ContactFromJson(Map json) { return _Contact.fromJson(json); } /// @nodoc mixin _$Contact { String get name => throw _privateConstructorUsedError; Typed get publicKey => throw _privateConstructorUsedError; bool get available => throw _privateConstructorUsedError; Map toJson() => throw _privateConstructorUsedError; @JsonKey(ignore: true) $ContactCopyWith get copyWith => throw _privateConstructorUsedError; } /// @nodoc abstract class $ContactCopyWith<$Res> { factory $ContactCopyWith(Contact value, $Res Function(Contact) then) = _$ContactCopyWithImpl<$Res, Contact>; @useResult $Res call( {String name, Typed publicKey, bool available}); } /// @nodoc class _$ContactCopyWithImpl<$Res, $Val extends Contact> implements $ContactCopyWith<$Res> { _$ContactCopyWithImpl(this._value, this._then); // ignore: unused_field final $Val _value; // ignore: unused_field final $Res Function($Val) _then; @pragma('vm:prefer-inline') @override $Res call({ Object? name = null, Object? publicKey = null, Object? available = null, }) { return _then(_value.copyWith( name: null == name ? _value.name : name // ignore: cast_nullable_to_non_nullable as String, publicKey: null == publicKey ? _value.publicKey : publicKey // ignore: cast_nullable_to_non_nullable as Typed, available: null == available ? _value.available : available // ignore: cast_nullable_to_non_nullable as bool, ) as $Val); } } /// @nodoc abstract class _$$_ContactCopyWith<$Res> implements $ContactCopyWith<$Res> { factory _$$_ContactCopyWith( _$_Contact value, $Res Function(_$_Contact) then) = __$$_ContactCopyWithImpl<$Res>; @override @useResult $Res call( {String name, Typed publicKey, bool available}); } /// @nodoc class __$$_ContactCopyWithImpl<$Res> extends _$ContactCopyWithImpl<$Res, _$_Contact> implements _$$_ContactCopyWith<$Res> { __$$_ContactCopyWithImpl(_$_Contact _value, $Res Function(_$_Contact) _then) : super(_value, _then); @pragma('vm:prefer-inline') @override $Res call({ Object? name = null, Object? publicKey = null, Object? available = null, }) { return _then(_$_Contact( name: null == name ? _value.name : name // ignore: cast_nullable_to_non_nullable as String, publicKey: null == publicKey ? _value.publicKey : publicKey // ignore: cast_nullable_to_non_nullable as Typed, available: null == available ? _value.available : available // ignore: cast_nullable_to_non_nullable as bool, )); } } /// @nodoc @JsonSerializable() class _$_Contact implements _Contact { const _$_Contact( {required this.name, required this.publicKey, required this.available}); factory _$_Contact.fromJson(Map json) => _$$_ContactFromJson(json); @override final String name; @override final Typed publicKey; @override final bool available; @override String toString() { return 'Contact(name: $name, publicKey: $publicKey, available: $available)'; } @override bool operator ==(dynamic other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _$_Contact && (identical(other.name, name) || other.name == name) && (identical(other.publicKey, publicKey) || other.publicKey == publicKey) && (identical(other.available, available) || other.available == available)); } @JsonKey(ignore: true) @override int get hashCode => Object.hash(runtimeType, name, publicKey, available); @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') _$$_ContactCopyWith<_$_Contact> get copyWith => __$$_ContactCopyWithImpl<_$_Contact>(this, _$identity); @override Map toJson() { return _$$_ContactToJson( this, ); } } abstract class _Contact implements Contact { const factory _Contact( {required final String name, required final Typed publicKey, required final bool available}) = _$_Contact; factory _Contact.fromJson(Map json) = _$_Contact.fromJson; @override String get name; @override Typed get publicKey; @override bool get available; @override @JsonKey(ignore: true) _$$_ContactCopyWith<_$_Contact> get copyWith => throw _privateConstructorUsedError; } Identity _$IdentityFromJson(Map json) { return _Identity.fromJson(json); } /// @nodoc mixin _$Identity { Typed get identityPublicKey => throw _privateConstructorUsedError; Typed get masterPublicKey => throw _privateConstructorUsedError; FixedEncodedString86 get identitySignature => throw _privateConstructorUsedError; FixedEncodedString86 get masterSignature => throw _privateConstructorUsedError; Map toJson() => throw _privateConstructorUsedError; @JsonKey(ignore: true) $IdentityCopyWith get copyWith => throw _privateConstructorUsedError; } /// @nodoc abstract class $IdentityCopyWith<$Res> { factory $IdentityCopyWith(Identity value, $Res Function(Identity) then) = _$IdentityCopyWithImpl<$Res, Identity>; @useResult $Res call( {Typed identityPublicKey, Typed masterPublicKey, FixedEncodedString86 identitySignature, FixedEncodedString86 masterSignature}); } /// @nodoc class _$IdentityCopyWithImpl<$Res, $Val extends Identity> implements $IdentityCopyWith<$Res> { _$IdentityCopyWithImpl(this._value, this._then); // ignore: unused_field final $Val _value; // ignore: unused_field final $Res Function($Val) _then; @pragma('vm:prefer-inline') @override $Res call({ Object? identityPublicKey = null, Object? masterPublicKey = null, Object? identitySignature = null, Object? masterSignature = null, }) { return _then(_value.copyWith( identityPublicKey: null == identityPublicKey ? _value.identityPublicKey : identityPublicKey // ignore: cast_nullable_to_non_nullable as Typed, masterPublicKey: null == masterPublicKey ? _value.masterPublicKey : masterPublicKey // ignore: cast_nullable_to_non_nullable as Typed, identitySignature: null == identitySignature ? _value.identitySignature : identitySignature // ignore: cast_nullable_to_non_nullable as FixedEncodedString86, masterSignature: null == masterSignature ? _value.masterSignature : masterSignature // ignore: cast_nullable_to_non_nullable as FixedEncodedString86, ) as $Val); } } /// @nodoc abstract class _$$_IdentityCopyWith<$Res> implements $IdentityCopyWith<$Res> { factory _$$_IdentityCopyWith( _$_Identity value, $Res Function(_$_Identity) then) = __$$_IdentityCopyWithImpl<$Res>; @override @useResult $Res call( {Typed identityPublicKey, Typed masterPublicKey, FixedEncodedString86 identitySignature, FixedEncodedString86 masterSignature}); } /// @nodoc class __$$_IdentityCopyWithImpl<$Res> extends _$IdentityCopyWithImpl<$Res, _$_Identity> implements _$$_IdentityCopyWith<$Res> { __$$_IdentityCopyWithImpl( _$_Identity _value, $Res Function(_$_Identity) _then) : super(_value, _then); @pragma('vm:prefer-inline') @override $Res call({ Object? identityPublicKey = null, Object? masterPublicKey = null, Object? identitySignature = null, Object? masterSignature = null, }) { return _then(_$_Identity( identityPublicKey: null == identityPublicKey ? _value.identityPublicKey : identityPublicKey // ignore: cast_nullable_to_non_nullable as Typed, masterPublicKey: null == masterPublicKey ? _value.masterPublicKey : masterPublicKey // ignore: cast_nullable_to_non_nullable as Typed, identitySignature: null == identitySignature ? _value.identitySignature : identitySignature // ignore: cast_nullable_to_non_nullable as FixedEncodedString86, masterSignature: null == masterSignature ? _value.masterSignature : masterSignature // ignore: cast_nullable_to_non_nullable as FixedEncodedString86, )); } } /// @nodoc @JsonSerializable() class _$_Identity implements _Identity { const _$_Identity( {required this.identityPublicKey, required this.masterPublicKey, required this.identitySignature, required this.masterSignature}); factory _$_Identity.fromJson(Map json) => _$$_IdentityFromJson(json); @override final Typed identityPublicKey; @override final Typed masterPublicKey; @override final FixedEncodedString86 identitySignature; @override final FixedEncodedString86 masterSignature; @override String toString() { return 'Identity(identityPublicKey: $identityPublicKey, masterPublicKey: $masterPublicKey, identitySignature: $identitySignature, masterSignature: $masterSignature)'; } @override bool operator ==(dynamic other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _$_Identity && (identical(other.identityPublicKey, identityPublicKey) || other.identityPublicKey == identityPublicKey) && (identical(other.masterPublicKey, masterPublicKey) || other.masterPublicKey == masterPublicKey) && (identical(other.identitySignature, identitySignature) || other.identitySignature == identitySignature) && (identical(other.masterSignature, masterSignature) || other.masterSignature == masterSignature)); } @JsonKey(ignore: true) @override int get hashCode => Object.hash(runtimeType, identityPublicKey, masterPublicKey, identitySignature, masterSignature); @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') _$$_IdentityCopyWith<_$_Identity> get copyWith => __$$_IdentityCopyWithImpl<_$_Identity>(this, _$identity); @override Map toJson() { return _$$_IdentityToJson( this, ); } } abstract class _Identity implements Identity { const factory _Identity( {required final Typed identityPublicKey, required final Typed masterPublicKey, required final FixedEncodedString86 identitySignature, required final FixedEncodedString86 masterSignature}) = _$_Identity; factory _Identity.fromJson(Map json) = _$_Identity.fromJson; @override Typed get identityPublicKey; @override Typed get masterPublicKey; @override FixedEncodedString86 get identitySignature; @override FixedEncodedString86 get masterSignature; @override @JsonKey(ignore: true) _$$_IdentityCopyWith<_$_Identity> get copyWith => throw _privateConstructorUsedError; } Profile _$ProfileFromJson(Map json) { return _Profile.fromJson(json); } /// @nodoc mixin _$Profile { String get name => throw _privateConstructorUsedError; Typed get publicKey => throw _privateConstructorUsedError; bool get invisible => throw _privateConstructorUsedError; Map toJson() => throw _privateConstructorUsedError; @JsonKey(ignore: true) $ProfileCopyWith get copyWith => throw _privateConstructorUsedError; } /// @nodoc abstract class $ProfileCopyWith<$Res> { factory $ProfileCopyWith(Profile value, $Res Function(Profile) then) = _$ProfileCopyWithImpl<$Res, Profile>; @useResult $Res call( {String name, Typed publicKey, bool invisible}); } /// @nodoc class _$ProfileCopyWithImpl<$Res, $Val extends Profile> implements $ProfileCopyWith<$Res> { _$ProfileCopyWithImpl(this._value, this._then); // ignore: unused_field final $Val _value; // ignore: unused_field final $Res Function($Val) _then; @pragma('vm:prefer-inline') @override $Res call({ Object? name = null, Object? publicKey = null, Object? invisible = null, }) { return _then(_value.copyWith( name: null == name ? _value.name : name // ignore: cast_nullable_to_non_nullable as String, publicKey: null == publicKey ? _value.publicKey : publicKey // ignore: cast_nullable_to_non_nullable as Typed, invisible: null == invisible ? _value.invisible : invisible // ignore: cast_nullable_to_non_nullable as bool, ) as $Val); } } /// @nodoc abstract class _$$_ProfileCopyWith<$Res> implements $ProfileCopyWith<$Res> { factory _$$_ProfileCopyWith( _$_Profile value, $Res Function(_$_Profile) then) = __$$_ProfileCopyWithImpl<$Res>; @override @useResult $Res call( {String name, Typed publicKey, bool invisible}); } /// @nodoc class __$$_ProfileCopyWithImpl<$Res> extends _$ProfileCopyWithImpl<$Res, _$_Profile> implements _$$_ProfileCopyWith<$Res> { __$$_ProfileCopyWithImpl(_$_Profile _value, $Res Function(_$_Profile) _then) : super(_value, _then); @pragma('vm:prefer-inline') @override $Res call({ Object? name = null, Object? publicKey = null, Object? invisible = null, }) { return _then(_$_Profile( name: null == name ? _value.name : name // ignore: cast_nullable_to_non_nullable as String, publicKey: null == publicKey ? _value.publicKey : publicKey // ignore: cast_nullable_to_non_nullable as Typed, invisible: null == invisible ? _value.invisible : invisible // ignore: cast_nullable_to_non_nullable as bool, )); } } /// @nodoc @JsonSerializable() class _$_Profile implements _Profile { const _$_Profile( {required this.name, required this.publicKey, required this.invisible}); factory _$_Profile.fromJson(Map json) => _$$_ProfileFromJson(json); @override final String name; @override final Typed publicKey; @override final bool invisible; @override String toString() { return 'Profile(name: $name, publicKey: $publicKey, invisible: $invisible)'; } @override bool operator ==(dynamic other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _$_Profile && (identical(other.name, name) || other.name == name) && (identical(other.publicKey, publicKey) || other.publicKey == publicKey) && (identical(other.invisible, invisible) || other.invisible == invisible)); } @JsonKey(ignore: true) @override int get hashCode => Object.hash(runtimeType, name, publicKey, invisible); @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') _$$_ProfileCopyWith<_$_Profile> get copyWith => __$$_ProfileCopyWithImpl<_$_Profile>(this, _$identity); @override Map toJson() { return _$$_ProfileToJson( this, ); } } abstract class _Profile implements Profile { const factory _Profile( {required final String name, required final Typed publicKey, required final bool invisible}) = _$_Profile; factory _Profile.fromJson(Map json) = _$_Profile.fromJson; @override String get name; @override Typed get publicKey; @override bool get invisible; @override @JsonKey(ignore: true) _$$_ProfileCopyWith<_$_Profile> get copyWith => throw _privateConstructorUsedError; }