Step.fromJson constructor

Step.fromJson(
  1. Map json_
)

Implementation

Step.fromJson(core.Map json_)
    : this(
        completionTime: json_.containsKey('completionTime')
            ? Timestamp.fromJson(json_['completionTime']
                as core.Map<core.String, core.dynamic>)
            : null,
        creationTime: json_.containsKey('creationTime')
            ? Timestamp.fromJson(
                json_['creationTime'] as core.Map<core.String, core.dynamic>)
            : null,
        description: json_.containsKey('description')
            ? json_['description'] as core.String
            : null,
        deviceUsageDuration: json_.containsKey('deviceUsageDuration')
            ? Duration.fromJson(json_['deviceUsageDuration']
                as core.Map<core.String, core.dynamic>)
            : null,
        dimensionValue: json_.containsKey('dimensionValue')
            ? (json_['dimensionValue'] as core.List)
                .map((value) => StepDimensionValueEntry.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        hasImages: json_.containsKey('hasImages')
            ? json_['hasImages'] as core.bool
            : null,
        labels: json_.containsKey('labels')
            ? (json_['labels'] as core.List)
                .map((value) => StepLabelsEntry.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        multiStep: json_.containsKey('multiStep')
            ? MultiStep.fromJson(
                json_['multiStep'] as core.Map<core.String, core.dynamic>)
            : null,
        name: json_.containsKey('name') ? json_['name'] as core.String : null,
        outcome: json_.containsKey('outcome')
            ? Outcome.fromJson(
                json_['outcome'] as core.Map<core.String, core.dynamic>)
            : null,
        runDuration: json_.containsKey('runDuration')
            ? Duration.fromJson(
                json_['runDuration'] as core.Map<core.String, core.dynamic>)
            : null,
        state:
            json_.containsKey('state') ? json_['state'] as core.String : null,
        stepId: json_.containsKey('stepId')
            ? json_['stepId'] as core.String
            : null,
        testExecutionStep: json_.containsKey('testExecutionStep')
            ? TestExecutionStep.fromJson(json_['testExecutionStep']
                as core.Map<core.String, core.dynamic>)
            : null,
        toolExecutionStep: json_.containsKey('toolExecutionStep')
            ? ToolExecutionStep.fromJson(json_['toolExecutionStep']
                as core.Map<core.String, core.dynamic>)
            : null,
      );