mirror of
https://gitlab.com/veilid/veilidchat.git
synced 2024-10-01 06:55:46 -04:00
65 lines
2.5 KiB
Dart
65 lines
2.5 KiB
Dart
// GENERATED CODE - DO NOT MODIFY BY HAND
|
|
|
|
part of 'identity.dart';
|
|
|
|
// **************************************************************************
|
|
// JsonSerializableGenerator
|
|
// **************************************************************************
|
|
|
|
_$_AccountRecordInfo _$$_AccountRecordInfoFromJson(Map<String, dynamic> json) =>
|
|
_$_AccountRecordInfo(
|
|
key: Typed<FixedEncodedString43>.fromJson(json['key']),
|
|
owner: KeyPair.fromJson(json['owner']),
|
|
);
|
|
|
|
Map<String, dynamic> _$$_AccountRecordInfoToJson(
|
|
_$_AccountRecordInfo instance) =>
|
|
<String, dynamic>{
|
|
'key': instance.key.toJson(),
|
|
'owner': instance.owner.toJson(),
|
|
};
|
|
|
|
_$_Identity _$$_IdentityFromJson(Map<String, dynamic> json) => _$_Identity(
|
|
accountRecords: IMap<String, ISet<AccountRecordInfo>>.fromJson(
|
|
json['account_records'] as Map<String, dynamic>,
|
|
(value) => value as String,
|
|
(value) => ISet<AccountRecordInfo>.fromJson(
|
|
value,
|
|
(value) =>
|
|
AccountRecordInfo.fromJson(value as Map<String, dynamic>))),
|
|
);
|
|
|
|
Map<String, dynamic> _$$_IdentityToJson(_$_Identity instance) =>
|
|
<String, dynamic>{
|
|
'account_records': instance.accountRecords.toJson(
|
|
(value) => value,
|
|
(value) => value.toJson(
|
|
(value) => value.toJson(),
|
|
),
|
|
),
|
|
};
|
|
|
|
_$_IdentityMaster _$$_IdentityMasterFromJson(Map<String, dynamic> json) =>
|
|
_$_IdentityMaster(
|
|
identityRecordKey:
|
|
Typed<FixedEncodedString43>.fromJson(json['identity_record_key']),
|
|
identityPublicKey:
|
|
FixedEncodedString43.fromJson(json['identity_public_key']),
|
|
masterRecordKey:
|
|
Typed<FixedEncodedString43>.fromJson(json['master_record_key']),
|
|
masterPublicKey: FixedEncodedString43.fromJson(json['master_public_key']),
|
|
identitySignature:
|
|
FixedEncodedString86.fromJson(json['identity_signature']),
|
|
masterSignature: FixedEncodedString86.fromJson(json['master_signature']),
|
|
);
|
|
|
|
Map<String, dynamic> _$$_IdentityMasterToJson(_$_IdentityMaster instance) =>
|
|
<String, dynamic>{
|
|
'identity_record_key': instance.identityRecordKey.toJson(),
|
|
'identity_public_key': instance.identityPublicKey.toJson(),
|
|
'master_record_key': instance.masterRecordKey.toJson(),
|
|
'master_public_key': instance.masterPublicKey.toJson(),
|
|
'identity_signature': instance.identitySignature.toJson(),
|
|
'master_signature': instance.masterSignature.toJson(),
|
|
};
|