DatasetListDatasets.fromJson constructor

DatasetListDatasets.fromJson(
  1. Map json_
)

Implementation

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