OperationMetadata.fromJson constructor

OperationMetadata.fromJson(
  1. Map _json
)

Implementation

OperationMetadata.fromJson(core.Map _json) {
  if (_json.containsKey("progressPercentage")) {
    progressPercentage = _json["progressPercentage"];
  }
  if (_json.containsKey("resourceNames")) {
    resourceNames = (_json["resourceNames"] as core.List).cast<core.String>();
  }
  if (_json.containsKey("startTime")) {
    startTime = _json["startTime"];
  }
  if (_json.containsKey("steps")) {
    steps = (_json["steps"] as core.List)
        .map<Step>((value) => new Step.fromJson(value))
        .toList();
  }
}