fromJson static method

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

Constructs a JsonWebKey from its JSON representation

Implementation

static JsonWebKey? fromJson(Map<String, dynamic> json) {
  final kp = KeyPair.fromJwk(json);
  if (kp == null) {
    return null;
  }
  return JsonWebKey.fromKeyPair(keyPair: kp, json: json);
}