Dataset.fromJson constructor

Dataset.fromJson(
  1. Map json_
)

Implementation

Dataset.fromJson(core.Map json_)
    : this(
        access: json_.containsKey('access')
            ? (json_['access'] as core.List)
                .map((value) => DatasetAccess.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        creationTime: json_.containsKey('creationTime')
            ? json_['creationTime'] as core.String
            : null,
        datasetReference: json_.containsKey('datasetReference')
            ? DatasetReference.fromJson(json_['datasetReference']
                as core.Map<core.String, core.dynamic>)
            : null,
        defaultCollation: json_.containsKey('defaultCollation')
            ? json_['defaultCollation'] as core.String
            : null,
        defaultEncryptionConfiguration:
            json_.containsKey('defaultEncryptionConfiguration')
                ? EncryptionConfiguration.fromJson(
                    json_['defaultEncryptionConfiguration']
                        as core.Map<core.String, core.dynamic>)
                : null,
        defaultPartitionExpirationMs:
            json_.containsKey('defaultPartitionExpirationMs')
                ? json_['defaultPartitionExpirationMs'] as core.String
                : null,
        defaultRoundingMode: json_.containsKey('defaultRoundingMode')
            ? json_['defaultRoundingMode'] as core.String
            : null,
        defaultTableExpirationMs:
            json_.containsKey('defaultTableExpirationMs')
                ? json_['defaultTableExpirationMs'] as core.String
                : null,
        description: json_.containsKey('description')
            ? json_['description'] as core.String
            : null,
        etag: json_.containsKey('etag') ? json_['etag'] as core.String : null,
        externalCatalogDatasetOptions:
            json_.containsKey('externalCatalogDatasetOptions')
                ? ExternalCatalogDatasetOptions.fromJson(
                    json_['externalCatalogDatasetOptions']
                        as core.Map<core.String, core.dynamic>)
                : null,
        externalDatasetReference:
            json_.containsKey('externalDatasetReference')
                ? ExternalDatasetReference.fromJson(
                    json_['externalDatasetReference']
                        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,
        isCaseInsensitive: json_.containsKey('isCaseInsensitive')
            ? json_['isCaseInsensitive'] as core.bool
            : 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,
        linkedDatasetMetadata: json_.containsKey('linkedDatasetMetadata')
            ? LinkedDatasetMetadata.fromJson(json_['linkedDatasetMetadata']
                as core.Map<core.String, core.dynamic>)
            : null,
        linkedDatasetSource: json_.containsKey('linkedDatasetSource')
            ? LinkedDatasetSource.fromJson(json_['linkedDatasetSource']
                as core.Map<core.String, core.dynamic>)
            : null,
        location: json_.containsKey('location')
            ? json_['location'] as core.String
            : null,
        maxTimeTravelHours: json_.containsKey('maxTimeTravelHours')
            ? json_['maxTimeTravelHours'] as core.String
            : 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,
        satisfiesPzi: json_.containsKey('satisfiesPzi')
            ? json_['satisfiesPzi'] as core.bool
            : null,
        satisfiesPzs: json_.containsKey('satisfiesPzs')
            ? json_['satisfiesPzs'] as core.bool
            : null,
        selfLink: json_.containsKey('selfLink')
            ? json_['selfLink'] as core.String
            : null,
        storageBillingModel: json_.containsKey('storageBillingModel')
            ? json_['storageBillingModel'] as core.String
            : null,
        tags: json_.containsKey('tags')
            ? (json_['tags'] as core.List)
                .map((value) => DatasetTags.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        type: json_.containsKey('type') ? json_['type'] as core.String : null,
      );