toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final json = <String, dynamic>{};
    json[r'id'] = this.id;
    json[r'organizationId'] = this.organizationId;
    json[r'clientId'] = this.clientId;
    json[r'clientSecret'] = this.clientSecret;
    json[r'name'] = this.name;
  if (this.description != null) {
    json[r'description'] = this.description;
  } else {
    json[r'description'] = null;
  }
  if (this.redirectUris != null) {
    json[r'redirectUris'] = this.redirectUris;
  } else {
    json[r'redirectUris'] = null;
  }
  if (this.allowedOrigins != null) {
    json[r'allowedOrigins'] = this.allowedOrigins;
  } else {
    json[r'allowedOrigins'] = null;
  }
  if (this.allowedScopes != null) {
    json[r'allowedScopes'] = this.allowedScopes;
  } else {
    json[r'allowedScopes'] = null;
  }
  if (this.allowedSocialProviders != null) {
    json[r'allowedSocialProviders'] = this.allowedSocialProviders;
  } else {
    json[r'allowedSocialProviders'] = null;
  }
  if (this.isActive != null) {
    json[r'isActive'] = this.isActive;
  } else {
    json[r'isActive'] = null;
  }
  if (this.pkceRequired != null) {
    json[r'pkceRequired'] = this.pkceRequired;
  } else {
    json[r'pkceRequired'] = null;
  }
  if (this.createdBy != null) {
    json[r'createdBy'] = this.createdBy;
  } else {
    json[r'createdBy'] = null;
  }
  if (this.metadata != null) {
    json[r'metadata'] = this.metadata;
  } else {
    json[r'metadata'] = null;
  }
  if (this.createdAt != null) {
    json[r'createdAt'] = this.createdAt;
  } else {
    json[r'createdAt'] = null;
  }
  if (this.updatedAt != null) {
    json[r'updatedAt'] = this.updatedAt;
  } else {
    json[r'updatedAt'] = null;
  }
  return json;
}