toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final json = <String, dynamic>{};
    json[r'client_name'] = this.clientName;
    json[r'redirect_uris'] = this.redirectUris;
    json[r'grant_types'] = this.grantTypes;
    json[r'response_types'] = this.responseTypes;
  if (this.scope != null) {
    json[r'scope'] = this.scope;
  } else {
    json[r'scope'] = null;
  }
    json[r'token_endpoint_auth_method'] = this.tokenEndpointAuthMethod;
  if (this.clientUri != null) {
    json[r'client_uri'] = this.clientUri;
  } else {
    json[r'client_uri'] = null;
  }
  if (this.logoUri != null) {
    json[r'logo_uri'] = this.logoUri;
  } else {
    json[r'logo_uri'] = null;
  }
  if (this.policyUri != null) {
    json[r'policy_uri'] = this.policyUri;
  } else {
    json[r'policy_uri'] = null;
  }
  if (this.tosUri != null) {
    json[r'tos_uri'] = this.tosUri;
  } else {
    json[r'tos_uri'] = null;
  }
  return json;
}