toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final json = <String, dynamic>{};
  if (this.assetId != null) {
    json[r'asset_id'] = this.assetId;
  } else {
    json[r'asset_id'] = null;
  }
  if (this.userId != null) {
    json[r'user_id'] = this.userId;
  } else {
    json[r'user_id'] = null;
  }
    json[r'company_id'] = this.companyId;
  if (this.connectionId != null) {
    json[r'connection_id'] = this.connectionId;
  } else {
    json[r'connection_id'] = null;
  }
  if (this.llmConnectionId != null) {
    json[r'llm_connection_id'] = this.llmConnectionId;
  } else {
    json[r'llm_connection_id'] = null;
  }
  if (this.snippetId != null) {
    json[r'snippet_id'] = this.snippetId;
  } else {
    json[r'snippet_id'] = null;
  }
  if (this.industryId != null) {
    json[r'industry_id'] = this.industryId;
  } else {
    json[r'industry_id'] = null;
  }
  if (this.aiJobId != null) {
    json[r'ai_job_id'] = this.aiJobId;
  } else {
    json[r'ai_job_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;
  } else {
    json[r'approved_at'] = null;
  }
    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;
  }
    json[r'source'] = this.source_;
  if (this.assetType != null) {
    json[r'asset_type'] = this.assetType;
  } else {
    json[r'asset_type'] = null;
  }
  if (this.assetSchema != null) {
    json[r'asset_schema'] = this.assetSchema;
  } else {
    json[r'asset_schema'] = null;
  }
  if (this.visibility != null) {
    json[r'visibility'] = this.visibility;
  } else {
    json[r'visibility'] = null;
  }
  if (this.tags != null) {
    json[r'tags'] = this.tags;
  } else {
    json[r'tags'] = null;
  }
  if (this.sqlLogic != null) {
    json[r'sql_logic'] = this.sqlLogic;
  } else {
    json[r'sql_logic'] = 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.sellInMarketplace != null) {
    json[r'sell_in_marketplace'] = this.sellInMarketplace;
  } else {
    json[r'sell_in_marketplace'] = null;
  }
  if (this.vizChartLibrary != null) {
    json[r'viz_chart_library'] = this.vizChartLibrary;
  } else {
    json[r'viz_chart_library'] = null;
  }
  if (this.vizChartType != null) {
    json[r'viz_chart_type'] = this.vizChartType;
  } else {
    json[r'viz_chart_type'] = null;
  }
  if (this.vizDepVarColName != null) {
    json[r'viz_dep_var_col_name'] = this.vizDepVarColName;
  } else {
    json[r'viz_dep_var_col_name'] = null;
  }
  if (this.vizIndepVarColName != null) {
    json[r'viz_indep_var_col_name'] = this.vizIndepVarColName;
  } else {
    json[r'viz_indep_var_col_name'] = null;
  }
  if (this.vizSizeColName != null) {
    json[r'viz_size_col_name'] = this.vizSizeColName;
  } else {
    json[r'viz_size_col_name'] = null;
  }
  if (this.vizColorColName != null) {
    json[r'viz_color_col_name'] = this.vizColorColName;
  } else {
    json[r'viz_color_col_name'] = null;
  }
  if (this.vizDataAggregation != null) {
    json[r'viz_data_aggregation'] = this.vizDataAggregation;
  } else {
    json[r'viz_data_aggregation'] = null;
  }
  if (this.vizSortDirection != null) {
    json[r'viz_sort_direction'] = this.vizSortDirection;
  } else {
    json[r'viz_sort_direction'] = null;
  }
  if (this.vizDataLimit != null) {
    json[r'viz_data_limit'] = this.vizDataLimit;
  } else {
    json[r'viz_data_limit'] = null;
  }
  if (this.vizColorScheme != null) {
    json[r'viz_color_scheme'] = this.vizColorScheme;
  } else {
    json[r'viz_color_scheme'] = null;
  }
  if (this.allowParams != null) {
    json[r'allow_params'] = this.allowParams;
  } else {
    json[r'allow_params'] = null;
  }
  if (this.acceptTerms != null) {
    json[r'accept_terms'] = this.acceptTerms;
  } else {
    json[r'accept_terms'] = null;
  }
  if (this.cached != null) {
    json[r'cached'] = this.cached;
  } else {
    json[r'cached'] = null;
  }
  if (this.schedule != null) {
    json[r'schedule'] = this.schedule;
  } else {
    json[r'schedule'] = null;
  }
  if (this.nextRun != null) {
    json[r'next_run'] = this.nextRun;
  } else {
    json[r'next_run'] = null;
  }
  if (this.dataTimePeriodStart != null) {
    json[r'data_time_period_start'] = this.dataTimePeriodStart;
  } else {
    json[r'data_time_period_start'] = null;
  }
  if (this.dataTimePeriodEnd != null) {
    json[r'data_time_period_end'] = this.dataTimePeriodEnd;
  } else {
    json[r'data_time_period_end'] = 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.dataSourceLastRefreshed != null) {
    json[r'data_source_last_refreshed'] = this.dataSourceLastRefreshed;
  } else {
    json[r'data_source_last_refreshed'] = 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;
}