AssetsInput class

Constructors

AssetsInput({String? userId, required String companyId, String? connectionId, int? industryId, int? aucId, String? functionId, AssetsInputApprovalStatusEnum? approvalStatus, String? approvedByUserId, DateTime? approvedAt, required String name, String? slug, String? description, String? detailedDescription, required AssetsInputSource_Enum source_, AssetsInputAssetTypeEnum? assetType, Object? assetSchema, String? tags, String? topQuestions, String? shortCode, String? restrictedDomains, String? sqlLogic, String? sourceSchemaName, String? sourceTableName, bool? sellInMarketplace, bool? requireCustomization, Object? vizSpec, AssetsInputVizChartLibraryEnum? vizChartLibrary, AssetsInputVizChartTypeEnum? vizChartType, String? vizDepVarColName, String? vizIndepVarColName, String? vizSizeColName, String? vizColorColName, AssetsInputVizDataAggregationEnum? vizDataAggregation, AssetsInputVizSortDirectionEnum? vizSortDirection, int? vizDataLimit, AssetsInputVizColorSchemeEnum? vizColorScheme, bool? vizShowLegend, bool? vizShowGrid, bool? vizShowTrendline, bool? vizLineSmoothing, bool? vizBarStacked, AssetsInputVizFilterDirectionEnum? vizFilterDirection, bool? allowParams, bool? acceptTerms, bool? cached, String? schedule, DateTime? nextRun, DateTime? dataTimePeriodStart, DateTime? dataTimePeriodEnd, DateTime? dateCollectionStart, AssetsInputGeographicCoverageTypeEnum? geographicCoverageType, String? geographicCoverageDetails, AssetsInputDataSourceRefreshFrequencyEnum? dataSourceRefreshFrequency, int? rateLimitNumber, AssetsInputRateLimitPeriodEnum? rateLimitPeriod, AssetsInputRateLimitGranularityEnum? rateLimitGranularity})
Returns a new AssetsInput instance.

Properties

acceptTerms bool?
Required.
getter/setter pair
allowParams bool?
Required.
getter/setter pair
approvalStatus AssetsInputApprovalStatusEnum?
Approval status for AI-generated assets
getter/setter pair
approvedAt DateTime?
When this asset was approved for marketplace
getter/setter pair
approvedByUserId String?
User who approved this asset for marketplace
getter/setter pair
assetSchema Object?
Stores database table schema data including columns, types, and metadata
getter/setter pair
assetType AssetsInputAssetTypeEnum?
Optional. One of: CALCULATION, VISUALIZATION, DATA.
getter/setter pair
aucId int?
Primary use case for this asset, from clustering analysis
getter/setter pair
cached bool?
Optional.
getter/setter pair
companyId String
References companies.company_id — A Spartera seller or buyer company account. See GET /companies for valid values. Required.
getter/setter pair
connectionId String?
Optional.
getter/setter pair
dataSourceRefreshFrequency AssetsInputDataSourceRefreshFrequencyEnum?
How often the source data is refreshed
getter/setter pair
dataTimePeriodEnd DateTime?
End date of the data time period covered
getter/setter pair
dataTimePeriodStart DateTime?
Start date of the data time period covered
getter/setter pair
dateCollectionStart DateTime?
When the seller began actively collecting this data. Distinct from data_time_period_start, which describes when the records themselves begin. Backfilled historical data will have date_collection_start > data_time_period_start.
getter/setter pair
description String?
Optional.
getter/setter pair
detailedDescription String?
Long-form HTML description for product pages and SEO
getter/setter pair
functionId String?
Optional identifier for routing to specific functions/models at seller endpoint. For GET: appended to URL path. For POST: included in JSON body.
getter/setter pair
geographicCoverageDetails String?
Specific regions/countries covered (e.g., 'United States, Canada, Mexico')
getter/setter pair
geographicCoverageType AssetsInputGeographicCoverageTypeEnum?
Type of geographic coverage
getter/setter pair
hashCode int
The hash code for this object.
no setteroverride
industryId int?
References industries.industry_id — Available industry categories for asset classification. Based on US NAISC codes.. See GET /industries for valid values. Optional.
getter/setter pair
name String
Required.
getter/setter pair
nextRun DateTime?
Optional.
getter/setter pair
rateLimitGranularity AssetsInputRateLimitGranularityEnum?
Granularity level for rate limiting (USER, COMPANY, IP)
getter/setter pair
rateLimitNumber int?
Number of requests allowed per period (e.g., 100)
getter/setter pair
rateLimitPeriod AssetsInputRateLimitPeriodEnum?
Time period for rate limiting (second, minute, hour, day)
getter/setter pair
requireCustomization bool?
Whether this asset requires customization before use
getter/setter pair
restrictedDomains String?
Semicolon or comma-separated list of domains restricted from accessing this asset
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
schedule String?
Optional.
getter/setter pair
sellInMarketplace bool?
Required.
getter/setter pair
shortCode String?
Short code for tera.ac URL shortener (e.g., 'f78zq1')
getter/setter pair
slug String?
Optional.
getter/setter pair
source_ AssetsInputSource_Enum
Required. One of: MANUAL, AUTOMATIC.
getter/setter pair
sourceSchemaName String?
Optional.
getter/setter pair
sourceTableName String?
Optional.
getter/setter pair
sqlLogic String?
Optional.
getter/setter pair
tags String?
Optional.
getter/setter pair
topQuestions String?
Top 3 questions this asset can help answer, in English. Stored as JSON array of strings (1-3 items, 15-200 chars each). Required for marketplace assets.
getter/setter pair
userId String?
References users.user_id — An individual user account within a company. See GET /users for valid values. Optional.
getter/setter pair
vizBarStacked bool?
Stack bars instead of grouping
getter/setter pair
vizChartLibrary AssetsInputVizChartLibraryEnum?
Optional. One of: PLOTLY, MATPLOTLIB, SEABORN.
getter/setter pair
vizChartType AssetsInputVizChartTypeEnum?
Optional. One of: LINE, BAR, PIE, DOUGHNUT, POLAR, … (8 total).
getter/setter pair
vizColorColName String?
Optional.
getter/setter pair
vizColorScheme AssetsInputVizColorSchemeEnum?
Optional. One of: Default, Sequential, Diverging, Categorical, Monochrome, … (8 total).
getter/setter pair
vizDataAggregation AssetsInputVizDataAggregationEnum?
Optional. One of: No Aggregation, Sum, Average, Count, Minimum, … (6 total).
getter/setter pair
vizDataLimit int?
Optional.
getter/setter pair
vizDepVarColName String?
Optional.
getter/setter pair
vizFilterDirection AssetsInputVizFilterDirectionEnum?
Whether data_limit shows TOP or BOTTOM N
getter/setter pair
vizIndepVarColName String?
Optional.
getter/setter pair
vizLineSmoothing bool?
Enable smoothing for line charts
getter/setter pair
vizShowGrid bool?
Show/hide grid lines
getter/setter pair
vizShowLegend bool?
Show/hide chart legend
getter/setter pair
vizShowTrendline bool?
Show trendline for scatter/line charts
getter/setter pair
vizSizeColName String?
Optional.
getter/setter pair
vizSortDirection AssetsInputVizSortDirectionEnum?
Optional. One of: No Sorting, Ascending, Descending.
getter/setter pair
vizSpec Object?
Plotly figure JSON describing the visualization. Authored via the visual editor or via API. When populated, takes precedence over the legacy viz_* fields. Shape follows Plotly's figure schema: {data: {type: '...', xsrc: '...', ...}, layout: {...}}. Column references use *src keys (xsrc, ysrc, labelssrc, etc.) and are hydrated with actual data at render time.
getter/setter pair

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
override

Static Methods

fromJson(dynamic value) AssetsInput?
Returns a new AssetsInput instance and imports its values from value if it's a Map, null otherwise.
listFromJson(dynamic json, {bool growable = false}) List<AssetsInput>
mapFromJson(dynamic json) Map<String, AssetsInput>
mapListFromJson(dynamic json, {bool growable = false}) Map<String, List<AssetsInput>>

Constants

requiredKeys → const Set<String>
The list of required keys that must be present in a JSON.