JsonListExtractable<T> class
final
Decodes a JSON array body into List<T>.
- Implemented types
-
- FromRequest<
List< T> >
- FromRequest<
Constructors
-
JsonListExtractable(T deserialize(Map<
String, Object?> json), {int limit = defaultBodyLimit}) -
Decodes each element with
deserialize.const
Properties
-
deserialize
→ T Function(Map<
String, Object?> json) -
Builds one element from a decoded JSON object.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- limit → int
-
The maximum body size, in bytes.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
extract(
Request request) → Future< Result< List< >T> , Rejection> -
Produces the value, or the rejection that stops the handler.
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited