ShelfRequestResponse2JsonUtility<T extends IConvertToJson> class
Properties
-
convert
→ IFactoryObjectFromJson<T>
-
final
-
hashCode
→ int
-
The hash code for this object.
no setterinherited
-
runtimeType
→ Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
badRequest(Future<T> object, )
→ 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, )
→ FutureOr<Response>
-
Return CREATED Response (status_code 201) with T instance serialized from json created from class
-
internalError(FutureOr<T> object, )
→ 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 nonexistent method or property is accessed.
inherited
-
ok(FutureOr<T> object, )
→ 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