Request.fromMap constructor
Request.fromMap(
- Map<
String, dynamic> map, - HttpRequest base,
- 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"]));
}