GenerateDataKeyPairResponse.fromJson constructor

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

Implementation

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