GetPublicKeyResponse.fromJson constructor
GetPublicKeyResponse.fromJson(
- Map<String, dynamic> json
)
Implementation
factory GetPublicKeyResponse.fromJson(Map<String, dynamic> json) {
return GetPublicKeyResponse(
customerMasterKeySpec:
(json['CustomerMasterKeySpec'] as String?)?.toCustomerMasterKeySpec(),
encryptionAlgorithms: (json['EncryptionAlgorithms'] as List?)
?.whereNotNull()
.map((e) => (e as String).toEncryptionAlgorithmSpec())
.toList(),
keyId: json['KeyId'] as String?,
keyUsage: (json['KeyUsage'] as String?)?.toKeyUsageType(),
publicKey: _s.decodeNullableUint8List(json['PublicKey'] as String?),
signingAlgorithms: (json['SigningAlgorithms'] as List?)
?.whereNotNull()
.map((e) => (e as String).toSigningAlgorithmSpec())
.toList(),
);
}