toJson method
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'n'] = this.n;
json[r'e'] = this.e;
json[r'd'] = this.d;
json[r'p'] = this.p;
json[r'q'] = this.q;
if (this.dp != null) {
json[r'dp'] = this.dp;
} else {
json[r'dp'] = null;
}
if (this.dq != null) {
json[r'dq'] = this.dq;
} else {
json[r'dq'] = null;
}
if (this.qi != null) {
json[r'qi'] = this.qi;
} else {
json[r'qi'] = null;
}
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;
}