Operation.fromJson constructor

Operation.fromJson(
  1. Map json_
)

Implementation

Operation.fromJson(core.Map json_)
    : this(
        clusterConditions: json_.containsKey('clusterConditions')
            ? (json_['clusterConditions'] as core.List)
                .map((value) => StatusCondition.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        detail: json_.containsKey('detail')
            ? json_['detail'] as core.String
            : null,
        endTime: json_.containsKey('endTime')
            ? json_['endTime'] as core.String
            : null,
        error: json_.containsKey('error')
            ? Status.fromJson(
                json_['error'] as core.Map<core.String, core.dynamic>)
            : null,
        location: json_.containsKey('location')
            ? json_['location'] as core.String
            : null,
        name: json_.containsKey('name') ? json_['name'] as core.String : null,
        nodepoolConditions: json_.containsKey('nodepoolConditions')
            ? (json_['nodepoolConditions'] as core.List)
                .map((value) => StatusCondition.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        operationType: json_.containsKey('operationType')
            ? json_['operationType'] as core.String
            : null,
        progress: json_.containsKey('progress')
            ? OperationProgress.fromJson(
                json_['progress'] as core.Map<core.String, core.dynamic>)
            : null,
        selfLink: json_.containsKey('selfLink')
            ? json_['selfLink'] as core.String
            : null,
        startTime: json_.containsKey('startTime')
            ? json_['startTime'] as core.String
            : null,
        status: json_.containsKey('status')
            ? json_['status'] as core.String
            : null,
        statusMessage: json_.containsKey('statusMessage')
            ? json_['statusMessage'] as core.String
            : null,
        targetLink: json_.containsKey('targetLink')
            ? json_['targetLink'] as core.String
            : null,
        zone: json_.containsKey('zone') ? json_['zone'] as core.String : null,
      );