ResponseEntity<T> class

Constructors

ResponseEntity(bool ok, {required T? response, String? message, Map<String, dynamic>? errors})
ResponseEntity.fromEntity(T t)
factory
ResponseEntity.fromJson({String rootNode = 'data', required Map<String, dynamic> json, required T fromJson(Map<String, dynamic> o)})
factory
ResponseEntity.withError(String message)
factory

Properties

errors Map<String, dynamic>?
final
hashCode int
The hash code for this object.
no setterinherited
message String?
final
ok bool
final
response → T?
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

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