JsonResponse class

Constructors

JsonResponse.new({required int statusCode, String? status, JsonObject? responseObject})

Properties

hashCode int
The hash code for this object.
no setterinherited
responseObject JsonObject?
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
status String?
final
statusCode int
final

Methods

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

Static Methods

badRequest(JsonObject object, {Map<String, Object>? headers, Encoding? encoding, Map<String, Object>? context}) Response
badRequestJson(ToJson object, {Map<String, Object>? headers, Encoding? encoding, Map<String, Object>? context}) Response
notFound(JsonObject object, {Map<String, Object>? headers, Encoding? encoding, Map<String, Object>? context}) Response
notFoundJson(ToJson object, {Map<String, Object>? headers, Encoding? encoding, Map<String, Object>? context}) Response
ok(JsonObject object, {Map<String, Object>? headers, Encoding? encoding, Map<String, Object>? context}) Response
okJson(ToJson object, {Map<String, Object>? headers, Encoding? encoding, Map<String, Object>? context}) Response
unauthorized(JsonObject object, {Map<String, Object>? headers, Encoding? encoding, Map<String, Object>? context}) Response
unauthorizedJson(ToJson object, {Map<String, Object>? headers, Encoding? encoding, Map<String, Object>? context}) Response