ExternalDataConfiguration.fromJson constructor

ExternalDataConfiguration.fromJson(
  1. Map json_
)

Implementation

ExternalDataConfiguration.fromJson(core.Map json_)
    : this(
        autodetect: json_.containsKey('autodetect')
            ? json_['autodetect'] as core.bool
            : null,
        avroOptions: json_.containsKey('avroOptions')
            ? AvroOptions.fromJson(
                json_['avroOptions'] as core.Map<core.String, core.dynamic>)
            : null,
        bigtableOptions: json_.containsKey('bigtableOptions')
            ? BigtableOptions.fromJson(json_['bigtableOptions']
                as core.Map<core.String, core.dynamic>)
            : null,
        compression: json_.containsKey('compression')
            ? json_['compression'] as core.String
            : null,
        connectionId: json_.containsKey('connectionId')
            ? json_['connectionId'] as core.String
            : null,
        csvOptions: json_.containsKey('csvOptions')
            ? CsvOptions.fromJson(
                json_['csvOptions'] as core.Map<core.String, core.dynamic>)
            : null,
        decimalTargetTypes: json_.containsKey('decimalTargetTypes')
            ? (json_['decimalTargetTypes'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        fileSetSpecType: json_.containsKey('fileSetSpecType')
            ? json_['fileSetSpecType'] as core.String
            : null,
        googleSheetsOptions: json_.containsKey('googleSheetsOptions')
            ? GoogleSheetsOptions.fromJson(json_['googleSheetsOptions']
                as core.Map<core.String, core.dynamic>)
            : null,
        hivePartitioningOptions: json_.containsKey('hivePartitioningOptions')
            ? HivePartitioningOptions.fromJson(
                json_['hivePartitioningOptions']
                    as core.Map<core.String, core.dynamic>)
            : null,
        ignoreUnknownValues: json_.containsKey('ignoreUnknownValues')
            ? json_['ignoreUnknownValues'] as core.bool
            : null,
        jsonExtension: json_.containsKey('jsonExtension')
            ? json_['jsonExtension'] as core.String
            : null,
        jsonOptions: json_.containsKey('jsonOptions')
            ? JsonOptions.fromJson(
                json_['jsonOptions'] as core.Map<core.String, core.dynamic>)
            : null,
        maxBadRecords: json_.containsKey('maxBadRecords')
            ? json_['maxBadRecords'] as core.int
            : null,
        metadataCacheMode: json_.containsKey('metadataCacheMode')
            ? json_['metadataCacheMode'] as core.String
            : null,
        objectMetadata: json_.containsKey('objectMetadata')
            ? json_['objectMetadata'] as core.String
            : null,
        parquetOptions: json_.containsKey('parquetOptions')
            ? ParquetOptions.fromJson(json_['parquetOptions']
                as core.Map<core.String, core.dynamic>)
            : null,
        referenceFileSchemaUri: json_.containsKey('referenceFileSchemaUri')
            ? json_['referenceFileSchemaUri'] as core.String
            : null,
        schema: json_.containsKey('schema')
            ? TableSchema.fromJson(
                json_['schema'] as core.Map<core.String, core.dynamic>)
            : null,
        sourceFormat: json_.containsKey('sourceFormat')
            ? json_['sourceFormat'] as core.String
            : null,
        sourceUris: json_.containsKey('sourceUris')
            ? (json_['sourceUris'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
      );