ShelfRequestResponse2JsonUtility<T extends IConvertToJson> class
Null safety
Constructors
-
ShelfRequestResponse2JsonUtility(IFactoryObjectFromJson<
T> convert) -
const
Properties
-
convert
→ IFactoryObjectFromJson<
T> -
final
- hashCode → int
-
The hash code for this object.
read-onlyinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
read-onlyinherited
Methods
-
badRequest(
Future< T> object, {Map<String, Object> ? optionalHeaders}) → FutureOr<Response> - Return BAD_REQUEST Response (status_code 400) with T instance serialized from json created from class
-
body(
Request request) → FutureOr< T> - Extract body from Shelf.Request
-
created(
FutureOr< T> object, {Map<String, Object> ? optionalHeaders}) → FutureOr<Response> - Return CREATED Response (status_code 201) with T instance serialized from json created from class
-
internalError(
FutureOr< T> object, {Map<String, Object> ? optionalHeaders}) → FutureOr<Response> - Return INTERNAL_SERVER_ERROR Response (status_code 500) with T instance serialized from json created from class
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a non-existent method or property is accessed.
inherited
-
ok(
FutureOr< T> object, {Map<String, Object> ? optionalHeaders}) → FutureOr<Response> - Return OK Response (status_code 200) with T instance serialized from json created from class
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited