toJson method
Implementation
Map<String, dynamic> toJson() {
final json = <String, dynamic>{};
json[r'date_created'] = this.dateCreated.toUtc().toIso8601String();
json[r'last_updated'] = this.lastUpdated.toUtc().toIso8601String();
if (this.endpointId != null) {
json[r'endpoint_id'] = this.endpointId;
} else {
json[r'endpoint_id'] = null;
}
if (this.userId != null) {
json[r'user_id'] = this.userId;
} else {
json[r'user_id'] = null;
}
json[r'company_id'] = this.companyId;
json[r'connection_id'] = this.connectionId;
if (this.industryId != null) {
json[r'industry_id'] = this.industryId;
} else {
json[r'industry_id'] = null;
}
if (this.aucId != null) {
json[r'auc_id'] = this.aucId;
} else {
json[r'auc_id'] = null;
}
if (this.approvalStatus != null) {
json[r'approval_status'] = this.approvalStatus;
} else {
json[r'approval_status'] = null;
}
if (this.approvedByUserId != null) {
json[r'approved_by_user_id'] = this.approvedByUserId;
} else {
json[r'approved_by_user_id'] = null;
}
if (this.approvedAt != null) {
json[r'approved_at'] = this.approvedAt!.toUtc().toIso8601String();
} else {
json[r'approved_at'] = null;
}
json[r'sell_in_marketplace'] = this.sellInMarketplace;
json[r'name'] = this.name;
if (this.slug != null) {
json[r'slug'] = this.slug;
} else {
json[r'slug'] = null;
}
if (this.description != null) {
json[r'description'] = this.description;
} else {
json[r'description'] = null;
}
if (this.detailedDescription != null) {
json[r'detailed_description'] = this.detailedDescription;
} else {
json[r'detailed_description'] = null;
}
if (this.topQuestions != null) {
json[r'top_questions'] = this.topQuestions;
} else {
json[r'top_questions'] = null;
}
if (this.sourceSchemaName != null) {
json[r'source_schema_name'] = this.sourceSchemaName;
} else {
json[r'source_schema_name'] = null;
}
if (this.sourceTableName != null) {
json[r'source_table_name'] = this.sourceTableName;
} else {
json[r'source_table_name'] = null;
}
if (this.customerName != null) {
json[r'customer_name'] = this.customerName;
} else {
json[r'customer_name'] = null;
}
if (this.endpointSchema != null) {
json[r'endpoint_schema'] = this.endpointSchema;
} else {
json[r'endpoint_schema'] = null;
}
if (this.rateLimitNumber != null) {
json[r'rate_limit_number'] = this.rateLimitNumber;
} else {
json[r'rate_limit_number'] = null;
}
if (this.rateLimitPeriod != null) {
json[r'rate_limit_period'] = this.rateLimitPeriod;
} else {
json[r'rate_limit_period'] = null;
}
if (this.rateLimitGranularity != null) {
json[r'rate_limit_granularity'] = this.rateLimitGranularity;
} else {
json[r'rate_limit_granularity'] = null;
}
if (this.accessMethod != null) {
json[r'access_method'] = this.accessMethod;
} else {
json[r'access_method'] = null;
}
if (this.accessWhitelist != null) {
json[r'access_whitelist'] = this.accessWhitelist;
} else {
json[r'access_whitelist'] = null;
}
json[r'status'] = this.status;
if (this.dataTimePeriodStart != null) {
json[r'data_time_period_start'] = this.dataTimePeriodStart!.toUtc().toIso8601String();
} else {
json[r'data_time_period_start'] = null;
}
if (this.dataTimePeriodEnd != null) {
json[r'data_time_period_end'] = this.dataTimePeriodEnd!.toUtc().toIso8601String();
} else {
json[r'data_time_period_end'] = null;
}
if (this.dateCollectionStart != null) {
json[r'date_collection_start'] = this.dateCollectionStart!.toUtc().toIso8601String();
} else {
json[r'date_collection_start'] = null;
}
if (this.geographicCoverageType != null) {
json[r'geographic_coverage_type'] = this.geographicCoverageType;
} else {
json[r'geographic_coverage_type'] = null;
}
if (this.geographicCoverageDetails != null) {
json[r'geographic_coverage_details'] = this.geographicCoverageDetails;
} else {
json[r'geographic_coverage_details'] = null;
}
if (this.dataSourceRefreshFrequency != null) {
json[r'data_source_refresh_frequency'] = this.dataSourceRefreshFrequency;
} else {
json[r'data_source_refresh_frequency'] = null;
}
if (this.tags != null) {
json[r'tags'] = this.tags;
} else {
json[r'tags'] = null;
}
if (this.lastAccessed != null) {
json[r'last_accessed'] = this.lastAccessed!.toUtc().toIso8601String();
} else {
json[r'last_accessed'] = null;
}
if (this.maxRecordsPerRequest != null) {
json[r'max_records_per_request'] = this.maxRecordsPerRequest;
} else {
json[r'max_records_per_request'] = null;
}
json[r'export_enabled'] = this.exportEnabled;
if (this.maxRecordsPerExport != null) {
json[r'max_records_per_export'] = this.maxRecordsPerExport;
} else {
json[r'max_records_per_export'] = null;
}
if (this.sampleResponse != null) {
json[r'sample_response'] = this.sampleResponse;
} else {
json[r'sample_response'] = null;
}
json[r'active'] = this.active;
return json;
}