DefaultResponse class

Constructors

DefaultResponse({required String message, dynamic data, int statusCode = 200, Map<String, Object> headers = const {}})

Properties

data ↔ dynamic
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
headers Map<String, Object>
getter/setter pair
message String
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
statusCode int
getter/setter pair

Methods

json() → Response
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toMap() Map<String, dynamic>
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

filterEmptyEntries(Map<String, dynamic> input) Map<String, dynamic>