toResponseWithKey static method
Implementation
static HttpResponse toResponseWithKey({dynamic from, required String key}) {
var json = tryCast<Map<Object?, Object?>>(from);
var response = tryCast<Map<Object?, Object?>>(json?[key]);
return toResponse(from: response);
}