JwtFormat.fromJson constructor

JwtFormat.fromJson(
  1. 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');
  }
}