toJson method
Implementation
Map<String, dynamic> toJson() {
final json = <String, dynamic>{};
json[r'active'] = active;
if (aud != null) {
json[r'aud'] = aud;
}
if (clientId != null) {
json[r'client_id'] = clientId;
}
if (exp != null) {
json[r'exp'] = exp;
}
if (ext != null) {
json[r'ext'] = ext;
}
if (iat != null) {
json[r'iat'] = iat;
}
if (iss != null) {
json[r'iss'] = iss;
}
if (nbf != null) {
json[r'nbf'] = nbf;
}
if (tokenType != null) {
json[r'token_type'] = tokenType;
}
if (username != null) {
json[r'username'] = username;
}
if (sub != null) {
json[r'sub'] = sub;
}
if (jti != null) {
json[r'jti'] = jti;
}
return json;
}