RequestBody.as<T>
and RequestBody.decode<T>
, have restrictions on the their type parameters when running as an executable. These types are limited to primitive types, such as int
, String
, double
, num
, List
(of aforementioned primitives, or Map<String, dynamic>
) and Map
(keys must String
, values may be any of the aforementioned primitive types).