fromJson static method

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

Creates a SaltedVerificationKey from a JSON map.

Binary data should be base64-encoded strings in the JSON.

Example:

final decoded = jsonDecode(jsonString);
final saltedKey = SaltedVerificationKey.fromJson(decoded);

Implementation

static SaltedVerificationKey fromJson(Map<String, dynamic> json) {
  return SaltedVerificationKey(
    key: base64.decode(json['key'] as String),
    salt: base64.decode(json['salt'] as String),
  );
}