NimphelosModel<T, E> constructor

NimphelosModel<T, E>(
  1. {T? object,
  2. bool? function(
    1. E exception
    )?,
  3. required bool success,
  4. required ErrorTypeEnum errorTypeEnum,
  5. 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