RepairClusterRequest.fromJson constructor

RepairClusterRequest.fromJson(
  1. Map json_
)

Implementation

RepairClusterRequest.fromJson(core.Map json_)
    : this(
        clusterUuid: json_.containsKey('clusterUuid')
            ? json_['clusterUuid'] as core.String
            : null,
        gracefulDecommissionTimeout:
            json_.containsKey('gracefulDecommissionTimeout')
                ? json_['gracefulDecommissionTimeout'] as core.String
                : null,
        nodePools: json_.containsKey('nodePools')
            ? (json_['nodePools'] as core.List)
                .map((value) => NodePool.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        parentOperationId: json_.containsKey('parentOperationId')
            ? json_['parentOperationId'] as core.String
            : null,
        requestId: json_.containsKey('requestId')
            ? json_['requestId'] as core.String
            : null,
      );