toJson method
Implementation
Map<String, dynamic> toJson() {
final json = <String, dynamic>{};
if (this.object != null) {
json[r'object'] = this.object;
} else {
json[r'object'] = null;
}
if (this.externalAccountId != null) {
json[r'external_account_id'] = this.externalAccountId;
} else {
json[r'external_account_id'] = null;
}
if (this.providerUserId != null) {
json[r'provider_user_id'] = this.providerUserId;
} else {
json[r'provider_user_id'] = null;
}
if (this.token != null) {
json[r'token'] = this.token;
} else {
json[r'token'] = null;
}
if (this.provider != null) {
json[r'provider'] = this.provider;
} else {
json[r'provider'] = null;
}
json[r'public_metadata'] = this.publicMetadata;
if (this.label != null) {
json[r'label'] = this.label;
} else {
json[r'label'] = null;
}
json[r'scopes'] = this.scopes;
if (this.tokenSecret != null) {
json[r'token_secret'] = this.tokenSecret;
} else {
json[r'token_secret'] = null;
}
if (this.expiresAt != null) {
json[r'expires_at'] = this.expiresAt;
} else {
json[r'expires_at'] = null;
}
return json;
}