toJson method
Implementation
Map<String, dynamic> toJson() {
final json = <String, dynamic>{};
if (this.accessToken != null) {
json[r'access_token'] = this.accessToken;
} else {
json[r'access_token'] = null;
}
if (this.tokenType != null) {
json[r'token_type'] = this.tokenType;
} else {
json[r'token_type'] = null;
}
if (this.expiresIn != null) {
json[r'expires_in'] = this.expiresIn;
} else {
json[r'expires_in'] = null;
}
if (this.refreshToken != null) {
json[r'refresh_token'] = this.refreshToken;
} else {
json[r'refresh_token'] = null;
}
if (this.requires2fa != null) {
json[r'requires_2fa'] = this.requires2fa;
} else {
json[r'requires_2fa'] = null;
}
if (this.tempToken != null) {
json[r'temp_token'] = this.tempToken;
} else {
json[r'temp_token'] = null;
}
return json;
}