CloneJob.fromJson constructor

CloneJob.fromJson(
  1. Map json_
)

Implementation

CloneJob.fromJson(core.Map json_)
    : this(
        computeEngineDisksTargetDetails:
            json_.containsKey('computeEngineDisksTargetDetails')
                ? ComputeEngineDisksTargetDetails.fromJson(
                    json_['computeEngineDisksTargetDetails']
                        as core.Map<core.String, core.dynamic>)
                : null,
        computeEngineTargetDetails:
            json_.containsKey('computeEngineTargetDetails')
                ? ComputeEngineTargetDetails.fromJson(
                    json_['computeEngineTargetDetails']
                        as core.Map<core.String, core.dynamic>)
                : null,
        createTime: json_.containsKey('createTime')
            ? json_['createTime'] 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,
        name: json_.containsKey('name') ? json_['name'] as core.String : null,
        state:
            json_.containsKey('state') ? json_['state'] as core.String : null,
        stateTime: json_.containsKey('stateTime')
            ? json_['stateTime'] as core.String
            : null,
        steps: json_.containsKey('steps')
            ? (json_['steps'] as core.List)
                .map((value) => CloneStep.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
      );