ImportJob.fromJson constructor

ImportJob.fromJson(
  1. Map json_
)

Implementation

ImportJob.fromJson(core.Map json_)
    : this(
        assetSource: json_.containsKey('assetSource')
            ? json_['assetSource'] as core.String
            : null,
        completeTime: json_.containsKey('completeTime')
            ? json_['completeTime'] as core.String
            : null,
        createTime: json_.containsKey('createTime')
            ? json_['createTime'] as core.String
            : null,
        displayName: json_.containsKey('displayName')
            ? json_['displayName'] as core.String
            : null,
        executionReport: json_.containsKey('executionReport')
            ? ExecutionReport.fromJson(json_['executionReport']
                as core.Map<core.String, core.dynamic>)
            : 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,
        name: json_.containsKey('name') ? json_['name'] as core.String : null,
        state:
            json_.containsKey('state') ? json_['state'] as core.String : null,
        updateTime: json_.containsKey('updateTime')
            ? json_['updateTime'] as core.String
            : null,
        validationReport: json_.containsKey('validationReport')
            ? ValidationReport.fromJson(json_['validationReport']
                as core.Map<core.String, core.dynamic>)
            : null,
      );