DiagnoseClusterRequest.fromJson constructor

DiagnoseClusterRequest.fromJson(
  1. Map json_
)

Implementation

DiagnoseClusterRequest.fromJson(core.Map json_)
    : this(
        diagnosisInterval: json_.containsKey('diagnosisInterval')
            ? Interval.fromJson(json_['diagnosisInterval']
                as core.Map<core.String, core.dynamic>)
            : null,
        job: json_.containsKey('job') ? json_['job'] as core.String : null,
        jobs: json_.containsKey('jobs')
            ? (json_['jobs'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        tarballAccess: json_.containsKey('tarballAccess')
            ? json_['tarballAccess'] as core.String
            : null,
        tarballGcsDir: json_.containsKey('tarballGcsDir')
            ? json_['tarballGcsDir'] as core.String
            : null,
        yarnApplicationId: json_.containsKey('yarnApplicationId')
            ? json_['yarnApplicationId'] as core.String
            : null,
        yarnApplicationIds: json_.containsKey('yarnApplicationIds')
            ? (json_['yarnApplicationIds'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
      );