JwtFormat.fromJson constructor
JwtFormat.fromJson(
- dynamic jwtFormatJson
Implementation
JwtFormat.fromJson(dynamic jwtFormatJson) {
var jwtAlg = credentialToMap(jwtFormatJson);
if (jwtAlg.containsKey('alg')) {
algorithms = jwtAlg['alg'].cast<String>();
} else {
throw FormatException('JwtFormat needs alg property');
}
}