GoogleCloudDatapipelinesV1DataflowJobDetails.fromJson constructor

GoogleCloudDatapipelinesV1DataflowJobDetails.fromJson(
  1. Map json_
)

Implementation

GoogleCloudDatapipelinesV1DataflowJobDetails.fromJson(core.Map json_)
    : this(
        currentWorkers: json_.containsKey('currentWorkers')
            ? json_['currentWorkers'] as core.int
            : null,
        resourceInfo: json_.containsKey('resourceInfo')
            ? (json_['resourceInfo'] as core.Map<core.String, core.dynamic>)
                .map(
                (key, value) => core.MapEntry(
                  key,
                  (value as core.num).toDouble(),
                ),
              )
            : null,
        sdkVersion: json_.containsKey('sdkVersion')
            ? GoogleCloudDatapipelinesV1SdkVersion.fromJson(
                json_['sdkVersion'] as core.Map<core.String, core.dynamic>)
            : null,
      );