DestinationDataset.fromJson constructor

DestinationDataset.fromJson(
  1. Map json_
)

Implementation

DestinationDataset.fromJson(core.Map json_)
    : this(
        datasetReference: json_.containsKey('datasetReference')
            ? DestinationDatasetReference.fromJson(json_['datasetReference']
                as core.Map<core.String, core.dynamic>)
            : null,
        description: json_.containsKey('description')
            ? json_['description'] as core.String
            : null,
        friendlyName: json_.containsKey('friendlyName')
            ? json_['friendlyName'] 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,
        location: json_.containsKey('location')
            ? json_['location'] as core.String
            : null,
      );