veilidchat/lib/entities/identity.g.dart

63 lines
2.4 KiB
Dart
Raw Normal View History

2023-07-07 19:33:28 -04:00
// GENERATED CODE - DO NOT MODIFY BY HAND
part of 'identity.dart';
// **************************************************************************
// JsonSerializableGenerator
// **************************************************************************
2023-07-17 22:39:33 -04:00
_$_AccountRecordInfo _$$_AccountRecordInfoFromJson(Map<String, dynamic> json) =>
_$_AccountRecordInfo(
key: Typed<FixedEncodedString43>.fromJson(json['key']),
owner: KeyPair.fromJson(json['owner']),
2023-07-16 21:41:40 -04:00
);
2023-07-17 22:39:33 -04:00
Map<String, dynamic> _$$_AccountRecordInfoToJson(
_$_AccountRecordInfo instance) =>
2023-07-16 21:41:40 -04:00
<String, dynamic>{
2023-07-17 22:39:33 -04:00
'key': instance.key.toJson(),
'owner': instance.owner.toJson(),
2023-07-16 21:41:40 -04:00
};
2023-07-07 19:33:28 -04:00
_$_Identity _$$_IdentityFromJson(Map<String, dynamic> json) => _$_Identity(
2023-07-17 22:39:33 -04:00
accountRecords: IMap<String, ISet<AccountRecordInfo>>.fromJson(
json['account_records'] as Map<String, dynamic>,
(value) => value as String,
(value) => ISet<AccountRecordInfo>.fromJson(
2023-07-26 14:20:29 -04:00
value, AccountRecordInfo.fromJson)),
2023-07-07 19:33:28 -04:00
);
Map<String, dynamic> _$$_IdentityToJson(_$_Identity instance) =>
<String, dynamic>{
2023-07-17 22:39:33 -04:00
'account_records': instance.accountRecords.toJson(
(value) => value,
(value) => value.toJson(
(value) => value.toJson(),
),
),
2023-07-07 19:33:28 -04:00
};
_$_IdentityMaster _$$_IdentityMasterFromJson(Map<String, dynamic> json) =>
_$_IdentityMaster(
2023-07-09 00:07:21 -04:00
identityRecordKey:
Typed<FixedEncodedString43>.fromJson(json['identity_record_key']),
2023-07-07 19:33:28 -04:00
identityPublicKey:
2023-07-09 00:07:21 -04:00
FixedEncodedString43.fromJson(json['identity_public_key']),
masterRecordKey:
Typed<FixedEncodedString43>.fromJson(json['master_record_key']),
masterPublicKey: FixedEncodedString43.fromJson(json['master_public_key']),
2023-07-07 19:33:28 -04:00
identitySignature:
FixedEncodedString86.fromJson(json['identity_signature']),
masterSignature: FixedEncodedString86.fromJson(json['master_signature']),
);
Map<String, dynamic> _$$_IdentityMasterToJson(_$_IdentityMaster instance) =>
<String, dynamic>{
2023-07-09 00:07:21 -04:00
'identity_record_key': instance.identityRecordKey.toJson(),
2023-07-07 19:33:28 -04:00
'identity_public_key': instance.identityPublicKey.toJson(),
2023-07-09 00:07:21 -04:00
'master_record_key': instance.masterRecordKey.toJson(),
2023-07-07 19:33:28 -04:00
'master_public_key': instance.masterPublicKey.toJson(),
'identity_signature': instance.identitySignature.toJson(),
'master_signature': instance.masterSignature.toJson(),
};