TransferCounters.fromJson constructor

TransferCounters.fromJson(
  1. Map _json
)

Implementation

TransferCounters.fromJson(core.Map _json) {
  if (_json.containsKey("bytesCopiedToSink")) {
    bytesCopiedToSink = _json["bytesCopiedToSink"];
  }
  if (_json.containsKey("bytesDeletedFromSink")) {
    bytesDeletedFromSink = _json["bytesDeletedFromSink"];
  }
  if (_json.containsKey("bytesDeletedFromSource")) {
    bytesDeletedFromSource = _json["bytesDeletedFromSource"];
  }
  if (_json.containsKey("bytesFailedToDeleteFromSink")) {
    bytesFailedToDeleteFromSink = _json["bytesFailedToDeleteFromSink"];
  }
  if (_json.containsKey("bytesFoundFromSource")) {
    bytesFoundFromSource = _json["bytesFoundFromSource"];
  }
  if (_json.containsKey("bytesFoundOnlyFromSink")) {
    bytesFoundOnlyFromSink = _json["bytesFoundOnlyFromSink"];
  }
  if (_json.containsKey("bytesFromSourceFailed")) {
    bytesFromSourceFailed = _json["bytesFromSourceFailed"];
  }
  if (_json.containsKey("bytesFromSourceSkippedBySync")) {
    bytesFromSourceSkippedBySync = _json["bytesFromSourceSkippedBySync"];
  }
  if (_json.containsKey("objectsCopiedToSink")) {
    objectsCopiedToSink = _json["objectsCopiedToSink"];
  }
  if (_json.containsKey("objectsDeletedFromSink")) {
    objectsDeletedFromSink = _json["objectsDeletedFromSink"];
  }
  if (_json.containsKey("objectsDeletedFromSource")) {
    objectsDeletedFromSource = _json["objectsDeletedFromSource"];
  }
  if (_json.containsKey("objectsFailedToDeleteFromSink")) {
    objectsFailedToDeleteFromSink = _json["objectsFailedToDeleteFromSink"];
  }
  if (_json.containsKey("objectsFoundFromSource")) {
    objectsFoundFromSource = _json["objectsFoundFromSource"];
  }
  if (_json.containsKey("objectsFoundOnlyFromSink")) {
    objectsFoundOnlyFromSink = _json["objectsFoundOnlyFromSink"];
  }
  if (_json.containsKey("objectsFromSourceFailed")) {
    objectsFromSourceFailed = _json["objectsFromSourceFailed"];
  }
  if (_json.containsKey("objectsFromSourceSkippedBySync")) {
    objectsFromSourceSkippedBySync = _json["objectsFromSourceSkippedBySync"];
  }
}