GetCipherTextResult.fromMap constructor
GetCipherTextResult.fromMap(
- Map<String, dynamic> map
)
Implementation
factory GetCipherTextResult.fromMap(Map<String, dynamic> map) {
return GetCipherTextResult(
ciphertextBlob: (() { final guardedValue = map['ciphertextBlob']; if (guardedValue == null) return null; return guardedValue as String; })(),
context: (() { final guardedValue = map['context']; if (guardedValue == null) return null; return (guardedValue as Map).cast<String, String>(); })(),
id: (() { final guardedValue = map['id']; if (guardedValue == null) return null; return guardedValue as String; })(),
keyId: (() { final guardedValue = map['keyId']; if (guardedValue == null) return null; return guardedValue as String; })(),
plaintext: (() { final guardedValue = map['plaintext']; if (guardedValue == null) return null; return guardedValue as String; })(),
region: (() { final guardedValue = map['region']; if (guardedValue == null) return null; return guardedValue as String; })(),
);
}