ParamsOfNaclSecretBoxOpen.fromMap constructor
ParamsOfNaclSecretBoxOpen.fromMap(- Map<String, dynamic> map
)
Implementation
ParamsOfNaclSecretBoxOpen.fromMap(Map<String, dynamic> map) {
if (map.containsKey('encrypted') && (map['encrypted'] != null)) {
_encrypted = map['encrypted'];
} else {
throw ('Wrong map data');
}
if (map.containsKey('nonce') && (map['nonce'] != null)) {
_nonce = map['nonce'];
} else {
throw ('Wrong map data');
}
if (map.containsKey('key') && (map['key'] != null)) {
_key = map['key'];
} else {
throw ('Wrong map data');
}
}