Jwk.fromJson constructor

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

Creates a Jwk instance from a JSON map.

The json parameter is a map containing the JWK properties.

Implementation

factory Jwk.fromJson(Map<String, dynamic> json) {
  return Jwk(
    kty: json['kty'],
    crv: json['crv'],
    x: json['x'],
    d: json['d'],
    y: json['y'],
  );
}