GoogleCloudDatapipelinesV1Pipeline.fromJson constructor

GoogleCloudDatapipelinesV1Pipeline.fromJson(
  1. Map json_
)

Implementation

GoogleCloudDatapipelinesV1Pipeline.fromJson(core.Map json_)
    : this(
        createTime: json_.containsKey('createTime')
            ? json_['createTime'] as core.String
            : null,
        displayName: json_.containsKey('displayName')
            ? json_['displayName'] as core.String
            : null,
        jobCount: json_.containsKey('jobCount')
            ? json_['jobCount'] as core.int
            : null,
        lastUpdateTime: json_.containsKey('lastUpdateTime')
            ? json_['lastUpdateTime'] as core.String
            : null,
        name: json_.containsKey('name') ? json_['name'] as core.String : null,
        pipelineSources: json_.containsKey('pipelineSources')
            ? (json_['pipelineSources']
                    as core.Map<core.String, core.dynamic>)
                .map(
                (key, value) => core.MapEntry(
                  key,
                  value as core.String,
                ),
              )
            : null,
        scheduleInfo: json_.containsKey('scheduleInfo')
            ? GoogleCloudDatapipelinesV1ScheduleSpec.fromJson(
                json_['scheduleInfo'] as core.Map<core.String, core.dynamic>)
            : null,
        schedulerServiceAccountEmail:
            json_.containsKey('schedulerServiceAccountEmail')
                ? json_['schedulerServiceAccountEmail'] as core.String
                : null,
        state:
            json_.containsKey('state') ? json_['state'] as core.String : null,
        type: json_.containsKey('type') ? json_['type'] as core.String : null,
        workload: json_.containsKey('workload')
            ? GoogleCloudDatapipelinesV1Workload.fromJson(
                json_['workload'] as core.Map<core.String, core.dynamic>)
            : null,
      );