ContextRule.fromJson constructor

ContextRule.fromJson(
  1. Map _json
)

Implementation

ContextRule.fromJson(core.Map _json) {
  if (_json.containsKey("allowedRequestExtensions")) {
    allowedRequestExtensions =
        (_json["allowedRequestExtensions"] as core.List).cast<core.String>();
  }
  if (_json.containsKey("allowedResponseExtensions")) {
    allowedResponseExtensions =
        (_json["allowedResponseExtensions"] as core.List).cast<core.String>();
  }
  if (_json.containsKey("provided")) {
    provided = (_json["provided"] as core.List).cast<core.String>();
  }
  if (_json.containsKey("requested")) {
    requested = (_json["requested"] as core.List).cast<core.String>();
  }
  if (_json.containsKey("selector")) {
    selector = _json["selector"];
  }
}