NimphelosModel<T, E> class

The BaseResponseModel class represents the response model for API requests. It contains the response object, error handling function, exception information, error type, and a flag indicating whether the request was successful.

Constructors

NimphelosModel({T? object, bool? function(E exception)?, required bool success, required ErrorTypeEnum errorTypeEnum, E? exception})
Constructs a BaseResponseModel instance.

Properties

errorTypeEnum ErrorTypeEnum
The type of error encountered (e.g., Dio error, unhandled exception).
read / write
exception ↔ E?
The exception information in case of an error.
read / write
function ↔ (bool? Function(E exception)?)
The function to handle exceptions in case of an error.
read / write
hashCode int
The hash code for this object.
read-onlyinherited
object ↔ T?
The object containing the response data.
read / write
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited
success bool
A flag indicating whether the request was successful.
read / write

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