toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final json = <String, dynamic>{};
  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.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.functionId != null) {
    json[r'function_id'] = this.functionId;
  } else {
    json[r'function_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'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;
  }
    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.tags != null) {
    json[r'tags'] = this.tags;
  } else {
    json[r'tags'] = null;
  }
  if (this.topQuestions != null) {
    json[r'top_questions'] = this.topQuestions;
  } else {
    json[r'top_questions'] = null;
  }
  if (this.shortCode != null) {
    json[r'short_code'] = this.shortCode;
  } else {
    json[r'short_code'] = null;
  }
  if (this.restrictedDomains != null) {
    json[r'restricted_domains'] = this.restrictedDomains;
  } else {
    json[r'restricted_domains'] = 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.requireCustomization != null) {
    json[r'require_customization'] = this.requireCustomization;
  } else {
    json[r'require_customization'] = null;
  }
  if (this.vizSpec != null) {
    json[r'viz_spec'] = this.vizSpec;
  } else {
    json[r'viz_spec'] = 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.vizShowLegend != null) {
    json[r'viz_show_legend'] = this.vizShowLegend;
  } else {
    json[r'viz_show_legend'] = null;
  }
  if (this.vizShowGrid != null) {
    json[r'viz_show_grid'] = this.vizShowGrid;
  } else {
    json[r'viz_show_grid'] = null;
  }
  if (this.vizShowTrendline != null) {
    json[r'viz_show_trendline'] = this.vizShowTrendline;
  } else {
    json[r'viz_show_trendline'] = null;
  }
  if (this.vizLineSmoothing != null) {
    json[r'viz_line_smoothing'] = this.vizLineSmoothing;
  } else {
    json[r'viz_line_smoothing'] = null;
  }
  if (this.vizBarStacked != null) {
    json[r'viz_bar_stacked'] = this.vizBarStacked;
  } else {
    json[r'viz_bar_stacked'] = null;
  }
  if (this.vizFilterDirection != null) {
    json[r'viz_filter_direction'] = this.vizFilterDirection;
  } else {
    json[r'viz_filter_direction'] = 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!.toUtc().toIso8601String();
  } else {
    json[r'next_run'] = null;
  }
  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.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;
  }
  return json;
}