public static T FetchRequestBody <T>(this RequestStream body) where T : FreeconPostBody { var bodyString = body.AsString(); body.Position = 0; return(JsonConvert.DeserializeObject <T>(bodyString)); }