DataSourceTable.fromJson constructor

DataSourceTable.fromJson(
  1. Map json_
)

Implementation

DataSourceTable.fromJson(core.Map json_)
    : this(
        columnSelectionType: json_.containsKey('columnSelectionType')
            ? json_['columnSelectionType'] as core.String
            : null,
        columns: json_.containsKey('columns')
            ? (json_['columns'] as core.List)
                .map((value) => DataSourceColumnReference.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        dataExecutionStatus: json_.containsKey('dataExecutionStatus')
            ? DataExecutionStatus.fromJson(json_['dataExecutionStatus']
                as core.Map<core.String, core.dynamic>)
            : null,
        dataSourceId: json_.containsKey('dataSourceId')
            ? json_['dataSourceId'] as core.String
            : null,
        filterSpecs: json_.containsKey('filterSpecs')
            ? (json_['filterSpecs'] as core.List)
                .map((value) => FilterSpec.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        rowLimit: json_.containsKey('rowLimit')
            ? json_['rowLimit'] as core.int
            : null,
        sortSpecs: json_.containsKey('sortSpecs')
            ? (json_['sortSpecs'] as core.List)
                .map((value) => SortSpec.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
      );