toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final json = <String, dynamic>{};
  json[r'object'] = this.object;
  json[r'external_account_id'] = this.externalAccountId;
  json[r'provider_user_id'] = this.providerUserId;
  json[r'token'] = this.token;
  if (this.expiresAt != null) {
    json[r'expires_at'] = this.expiresAt;
  } else {
    json[r'expires_at'] = null;
  }
  json[r'provider'] = this.provider;
  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.idToken != null) {
    json[r'id_token'] = this.idToken;
  } else {
    json[r'id_token'] = null;
  }
  if (this.tokenSecret != null) {
    json[r'token_secret'] = this.tokenSecret;
  } else {
    json[r'token_secret'] = null;
  }
  return json;
}