GenerateDataKeyPairWithoutPlaintextResponse.fromJson constructor

GenerateDataKeyPairWithoutPlaintextResponse.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory GenerateDataKeyPairWithoutPlaintextResponse.fromJson(
    Map<String, dynamic> json) {
  return GenerateDataKeyPairWithoutPlaintextResponse(
    keyId: json['KeyId'] as String?,
    keyPairSpec: (json['KeyPairSpec'] as String?)?.toDataKeyPairSpec(),
    privateKeyCiphertextBlob: _s
        .decodeNullableUint8List(json['PrivateKeyCiphertextBlob'] as String?),
    publicKey: _s.decodeNullableUint8List(json['PublicKey'] as String?),
  );
}