toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final json = <String, dynamic>{};
  if (this.connectionId != null) {
    json[r'connection_id'] = this.connectionId;
  } else {
    json[r'connection_id'] = null;
  }
  if (this.userId != null) {
    json[r'user_id'] = this.userId;
  } else {
    json[r'user_id'] = null;
  }
    json[r'engine_id'] = this.engineId;
    json[r'company_id'] = this.companyId;
  if (this.credentialType != null) {
    json[r'credential_type'] = this.credentialType;
  } else {
    json[r'credential_type'] = null;
  }
  if (this.apiProvider != null) {
    json[r'api_provider'] = this.apiProvider;
  } else {
    json[r'api_provider'] = null;
  }
  if (this.apiEndpoint != null) {
    json[r'api_endpoint'] = this.apiEndpoint;
  } else {
    json[r'api_endpoint'] = null;
  }
  if (this.apiKeyLocation != null) {
    json[r'api_key_location'] = this.apiKeyLocation;
  } else {
    json[r'api_key_location'] = null;
  }
  if (this.apiKeyParam != null) {
    json[r'api_key_param'] = this.apiKeyParam;
  } else {
    json[r'api_key_param'] = null;
  }
  if (this.apiKeyValue != null) {
    json[r'api_key_value'] = this.apiKeyValue;
  } else {
    json[r'api_key_value'] = null;
  }
    json[r'visibility'] = this.visibility;
  if (this.name != null) {
    json[r'name'] = this.name;
  } else {
    json[r'name'] = null;
  }
  if (this.description != null) {
    json[r'description'] = this.description;
  } else {
    json[r'description'] = null;
  }
  if (this.gcpSecretId != null) {
    json[r'gcp_secret_id'] = this.gcpSecretId;
  } else {
    json[r'gcp_secret_id'] = null;
  }
  if (this.providerDomain != null) {
    json[r'provider_domain'] = this.providerDomain;
  } else {
    json[r'provider_domain'] = null;
  }
  if (this.verifiedUsageAbility != null) {
    json[r'verified_usage_ability'] = this.verifiedUsageAbility;
  } else {
    json[r'verified_usage_ability'] = null;
  }
  if (this.dateCreated != null) {
    json[r'date_created'] = this.dateCreated;
  } else {
    json[r'date_created'] = null;
  }
  if (this.lastUpdated != null) {
    json[r'last_updated'] = this.lastUpdated;
  } else {
    json[r'last_updated'] = null;
  }
  if (this.active != null) {
    json[r'active'] = this.active;
  } else {
    json[r'active'] = null;
  }
  return json;
}