Table.fromJson constructor

Table.fromJson(
  1. Map json_
)

Implementation

Table.fromJson(core.Map json_)
    : this(
        biglakeConfiguration: json_.containsKey('biglakeConfiguration')
            ? BigLakeConfiguration.fromJson(json_['biglakeConfiguration']
                as core.Map<core.String, core.dynamic>)
            : null,
        cloneDefinition: json_.containsKey('cloneDefinition')
            ? CloneDefinition.fromJson(json_['cloneDefinition']
                as core.Map<core.String, core.dynamic>)
            : null,
        clustering: json_.containsKey('clustering')
            ? Clustering.fromJson(
                json_['clustering'] as core.Map<core.String, core.dynamic>)
            : null,
        creationTime: json_.containsKey('creationTime')
            ? json_['creationTime'] as core.String
            : null,
        defaultCollation: json_.containsKey('defaultCollation')
            ? json_['defaultCollation'] as core.String
            : null,
        defaultRoundingMode: json_.containsKey('defaultRoundingMode')
            ? json_['defaultRoundingMode'] as core.String
            : null,
        description: json_.containsKey('description')
            ? json_['description'] as core.String
            : null,
        encryptionConfiguration: json_.containsKey('encryptionConfiguration')
            ? EncryptionConfiguration.fromJson(
                json_['encryptionConfiguration']
                    as core.Map<core.String, core.dynamic>)
            : null,
        etag: json_.containsKey('etag') ? json_['etag'] as core.String : null,
        expirationTime: json_.containsKey('expirationTime')
            ? json_['expirationTime'] as core.String
            : null,
        externalCatalogTableOptions:
            json_.containsKey('externalCatalogTableOptions')
                ? ExternalCatalogTableOptions.fromJson(
                    json_['externalCatalogTableOptions']
                        as core.Map<core.String, core.dynamic>)
                : null,
        externalDataConfiguration:
            json_.containsKey('externalDataConfiguration')
                ? ExternalDataConfiguration.fromJson(
                    json_['externalDataConfiguration']
                        as core.Map<core.String, core.dynamic>)
                : null,
        friendlyName: json_.containsKey('friendlyName')
            ? json_['friendlyName'] as core.String
            : null,
        id: json_.containsKey('id') ? json_['id'] as core.String : null,
        kind: json_.containsKey('kind') ? json_['kind'] as core.String : null,
        labels: json_.containsKey('labels')
            ? (json_['labels'] as core.Map<core.String, core.dynamic>).map(
                (key, value) => core.MapEntry(
                  key,
                  value as core.String,
                ),
              )
            : null,
        lastModifiedTime: json_.containsKey('lastModifiedTime')
            ? json_['lastModifiedTime'] as core.String
            : null,
        location: json_.containsKey('location')
            ? json_['location'] as core.String
            : null,
        materializedView: json_.containsKey('materializedView')
            ? MaterializedViewDefinition.fromJson(json_['materializedView']
                as core.Map<core.String, core.dynamic>)
            : null,
        materializedViewStatus: json_.containsKey('materializedViewStatus')
            ? MaterializedViewStatus.fromJson(json_['materializedViewStatus']
                as core.Map<core.String, core.dynamic>)
            : null,
        maxStaleness: json_.containsKey('maxStaleness')
            ? json_['maxStaleness'] as core.String
            : null,
        model: json_.containsKey('model')
            ? ModelDefinition.fromJson(
                json_['model'] as core.Map<core.String, core.dynamic>)
            : null,
        numActiveLogicalBytes: json_.containsKey('numActiveLogicalBytes')
            ? json_['numActiveLogicalBytes'] as core.String
            : null,
        numActivePhysicalBytes: json_.containsKey('numActivePhysicalBytes')
            ? json_['numActivePhysicalBytes'] as core.String
            : null,
        numBytes: json_.containsKey('numBytes')
            ? json_['numBytes'] as core.String
            : null,
        numCurrentPhysicalBytes: json_.containsKey('numCurrentPhysicalBytes')
            ? json_['numCurrentPhysicalBytes'] as core.String
            : null,
        numLongTermBytes: json_.containsKey('numLongTermBytes')
            ? json_['numLongTermBytes'] as core.String
            : null,
        numLongTermLogicalBytes: json_.containsKey('numLongTermLogicalBytes')
            ? json_['numLongTermLogicalBytes'] as core.String
            : null,
        numLongTermPhysicalBytes:
            json_.containsKey('numLongTermPhysicalBytes')
                ? json_['numLongTermPhysicalBytes'] as core.String
                : null,
        numPartitions: json_.containsKey('numPartitions')
            ? json_['numPartitions'] as core.String
            : null,
        numPhysicalBytes: json_.containsKey('numPhysicalBytes')
            ? json_['numPhysicalBytes'] as core.String
            : null,
        numRows: json_.containsKey('numRows')
            ? json_['numRows'] as core.String
            : null,
        numTimeTravelPhysicalBytes:
            json_.containsKey('numTimeTravelPhysicalBytes')
                ? json_['numTimeTravelPhysicalBytes'] as core.String
                : null,
        numTotalLogicalBytes: json_.containsKey('numTotalLogicalBytes')
            ? json_['numTotalLogicalBytes'] as core.String
            : null,
        numTotalPhysicalBytes: json_.containsKey('numTotalPhysicalBytes')
            ? json_['numTotalPhysicalBytes'] as core.String
            : null,
        partitionDefinition: json_.containsKey('partitionDefinition')
            ? PartitioningDefinition.fromJson(json_['partitionDefinition']
                as core.Map<core.String, core.dynamic>)
            : null,
        rangePartitioning: json_.containsKey('rangePartitioning')
            ? RangePartitioning.fromJson(json_['rangePartitioning']
                as core.Map<core.String, core.dynamic>)
            : null,
        replicas: json_.containsKey('replicas')
            ? (json_['replicas'] as core.List)
                .map((value) => TableReference.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        requirePartitionFilter: json_.containsKey('requirePartitionFilter')
            ? json_['requirePartitionFilter'] as core.bool
            : null,
        resourceTags: json_.containsKey('resourceTags')
            ? (json_['resourceTags'] as core.Map<core.String, core.dynamic>)
                .map(
                (key, value) => core.MapEntry(
                  key,
                  value as core.String,
                ),
              )
            : null,
        restrictions: json_.containsKey('restrictions')
            ? RestrictionConfig.fromJson(
                json_['restrictions'] as core.Map<core.String, core.dynamic>)
            : null,
        schema: json_.containsKey('schema')
            ? TableSchema.fromJson(
                json_['schema'] as core.Map<core.String, core.dynamic>)
            : null,
        selfLink: json_.containsKey('selfLink')
            ? json_['selfLink'] as core.String
            : null,
        snapshotDefinition: json_.containsKey('snapshotDefinition')
            ? SnapshotDefinition.fromJson(json_['snapshotDefinition']
                as core.Map<core.String, core.dynamic>)
            : null,
        streamingBuffer: json_.containsKey('streamingBuffer')
            ? Streamingbuffer.fromJson(json_['streamingBuffer']
                as core.Map<core.String, core.dynamic>)
            : null,
        tableConstraints: json_.containsKey('tableConstraints')
            ? TableConstraints.fromJson(json_['tableConstraints']
                as core.Map<core.String, core.dynamic>)
            : null,
        tableReference: json_.containsKey('tableReference')
            ? TableReference.fromJson(json_['tableReference']
                as core.Map<core.String, core.dynamic>)
            : null,
        tableReplicationInfo: json_.containsKey('tableReplicationInfo')
            ? TableReplicationInfo.fromJson(json_['tableReplicationInfo']
                as core.Map<core.String, core.dynamic>)
            : null,
        timePartitioning: json_.containsKey('timePartitioning')
            ? TimePartitioning.fromJson(json_['timePartitioning']
                as core.Map<core.String, core.dynamic>)
            : null,
        type: json_.containsKey('type') ? json_['type'] as core.String : null,
        view: json_.containsKey('view')
            ? ViewDefinition.fromJson(
                json_['view'] as core.Map<core.String, core.dynamic>)
            : null,
      );