ExecutionStatus.fromJson constructor

ExecutionStatus.fromJson(
  1. Map json_
)

Implementation

ExecutionStatus.fromJson(core.Map json_)
    : this(
        cancelledCount: json_.containsKey('cancelledCount')
            ? json_['cancelledCount'] as core.int
            : null,
        completionTime: json_.containsKey('completionTime')
            ? json_['completionTime'] as core.String
            : null,
        conditions: json_.containsKey('conditions')
            ? (json_['conditions'] as core.List)
                .map((value) => GoogleCloudRunV1Condition.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        failedCount: json_.containsKey('failedCount')
            ? json_['failedCount'] as core.int
            : null,
        logUri: json_.containsKey('logUri')
            ? json_['logUri'] as core.String
            : null,
        observedGeneration: json_.containsKey('observedGeneration')
            ? json_['observedGeneration'] as core.int
            : null,
        retriedCount: json_.containsKey('retriedCount')
            ? json_['retriedCount'] as core.int
            : null,
        runningCount: json_.containsKey('runningCount')
            ? json_['runningCount'] as core.int
            : null,
        startTime: json_.containsKey('startTime')
            ? json_['startTime'] as core.String
            : null,
        succeededCount: json_.containsKey('succeededCount')
            ? json_['succeededCount'] as core.int
            : null,
      );