NimphelosModel<T, E> constructor
NimphelosModel<T, E> ({
- T? object,
- bool? function(
- E exception
- required bool success,
- required ErrorTypeEnum errorTypeEnum,
- E? exception,
Constructs a BaseResponseModel instance.
object
is the response data.function
is the function to handle exceptions.success
indicates whether the request was successful.exception
is the exception information.errorTypeEnum
represents the type of error encountered.
Implementation
NimphelosModel({
this.object,
this.function,
required this.success,
required this.errorTypeEnum,
this.exception,
});