toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final json = <String, dynamic>{};
  if (this.account != null) {
    json[r'account'] = this.account;
  } else {
    json[r'account'] = null;
  }
  if (this.active != null) {
    json[r'active'] = this.active;
  } else {
    json[r'active'] = null;
  }
  if (this.externalId != null) {
    json[r'externalId'] = this.externalId;
  } else {
    json[r'externalId'] = null;
  }
  if (this.provider != null) {
    json[r'provider'] = this.provider;
  } else {
    json[r'provider'] = null;
  }
  if (this.reason != null) {
    json[r'reason'] = this.reason;
  } else {
    json[r'reason'] = null;
  }
    json[r'scopes'] = this.scopes;
  return json;
}