errorModel method

ServerException errorModel(
  1. dynamic response,
  2. String statusMessage,
  3. ExpectType expectType
)

Implementation

ServerException errorModel(
  dynamic response,
  String statusMessage,
  ExpectType expectType,
) =>
    ServerException(
      errorMessageModel: RequestErrorModel.modelValidation(
        validateModelName: T.toString(),
        expectType: expectType,
        requestApi: method,
        responseApi: response,
        statusMessage: statusMessage,
      ),
    );