Request.fromMap constructor

Request.fromMap(
  1. Map<String, dynamic> map,
  2. HttpRequest base,
  3. RequestContext context
)

Implementation

factory Request.fromMap(
    Map<String, dynamic> map, HttpRequest base, RequestContext context) {
  //TODO: OTHER
  return HttpStyleRequest(
      baseRequest: base,
      body: map["body"],
      method: Methods.values[map["method"]],
      context: context,
      contentType: ContentType.parse(map["content_type"]));
}