GoogleFirestoreAdminV1FieldOperationMetadata.fromJson constructor

GoogleFirestoreAdminV1FieldOperationMetadata.fromJson(Map _json)

Implementation

GoogleFirestoreAdminV1FieldOperationMetadata.fromJson(core.Map _json) {
  if (_json.containsKey("endTime")) {
    endTime = _json["endTime"];
  }
  if (_json.containsKey("field")) {
    field = _json["field"];
  }
  if (_json.containsKey("indexConfigDeltas")) {
    indexConfigDeltas = (_json["indexConfigDeltas"] as core.List)
        .map<GoogleFirestoreAdminV1IndexConfigDelta>((value) =>
            new GoogleFirestoreAdminV1IndexConfigDelta.fromJson(value))
        .toList();
  }
  if (_json.containsKey("progressBytes")) {
    progressBytes =
        new GoogleFirestoreAdminV1Progress.fromJson(_json["progressBytes"]);
  }
  if (_json.containsKey("progressDocuments")) {
    progressDocuments = new GoogleFirestoreAdminV1Progress.fromJson(
        _json["progressDocuments"]);
  }
  if (_json.containsKey("startTime")) {
    startTime = _json["startTime"];
  }
  if (_json.containsKey("state")) {
    state = _json["state"];
  }
}