toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final json = <String, dynamic>{};
  json[r'kid'] = this.kid;
  json[r'alg'] = this.alg;
  json[r'use'] = this.use;
  json[r'kty'] = this.kty;
  json[r'crv'] = this.crv;
  json[r'x'] = this.x;
  json[r'd'] = this.d;
  json[r'x5c'] = this.x5c;
  if (this.x5t != null) {
    json[r'x5t'] = this.x5t;
  } else {
    json[r'x5t'] = null;
  }
  if (this.x5tHashS256 != null) {
    json[r'x5t#S256'] = this.x5tHashS256;
  } else {
    json[r'x5t#S256'] = null;
  }
  if (this.x5u != null) {
    json[r'x5u'] = this.x5u;
  } else {
    json[r'x5u'] = null;
  }
  return json;
}