BackendRule.fromJson constructor

BackendRule.fromJson(
  1. Map _json
)

Implementation

BackendRule.fromJson(core.Map _json) {
  if (_json.containsKey("address")) {
    address = _json["address"];
  }
  if (_json.containsKey("deadline")) {
    deadline = _json["deadline"].toDouble();
  }
  if (_json.containsKey("jwtAudience")) {
    jwtAudience = _json["jwtAudience"];
  }
  if (_json.containsKey("minDeadline")) {
    minDeadline = _json["minDeadline"].toDouble();
  }
  if (_json.containsKey("operationDeadline")) {
    operationDeadline = _json["operationDeadline"].toDouble();
  }
  if (_json.containsKey("pathTranslation")) {
    pathTranslation = _json["pathTranslation"];
  }
  if (_json.containsKey("selector")) {
    selector = _json["selector"];
  }
}