toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final json = <String, dynamic>{};
  if (this.name != null) {
    json[r'name'] = this.name;
  } else {
    json[r'name'] = null;
  }
  if (this.redirectUris != null) {
    json[r'redirect_uris'] = this.redirectUris;
  } else {
    json[r'redirect_uris'] = null;
  }
  if (this.callbackUrl != null) {
    json[r'callback_url'] = this.callbackUrl;
  } else {
    json[r'callback_url'] = null;
  }
  if (this.scopes != null) {
    json[r'scopes'] = this.scopes;
  } else {
    json[r'scopes'] = null;
  }
  if (this.public != null) {
    json[r'public'] = this.public;
  } else {
    json[r'public'] = null;
  }
  return json;
}