toJson method
Implementation
@override
Map<String, dynamic> toJson() {
Map<String, dynamic> jsonObject = {};
if (accessToken != null) {
jsonObject['access_token'] = accessToken;
}
if (refreshToken != null) {
jsonObject['refresh_token'] = refreshToken;
}
if (cNonce != null) {
jsonObject['c_nonce'] = cNonce;
}
if (cNonceExpiresIn != null) {
jsonObject['c_nonce_expires_in'] = cNonceExpiresIn;
}
if (authorizationPending != null) {
jsonObject['authorization_pending'] = authorizationPending;
}
if (interval != null) {
jsonObject['interval'] = interval;
}
return jsonObject;
}