ValueFromResponse constructor

ValueFromResponse({
  1. GetValueFromResponse<bool>? checkApiSuccess,
  2. GetValueFromResponse<String?>? getErrorMessage,
  3. GetValueFromResponse<MapEntry<String, dynamic>?>? getErrorCode,
})

Creates a ValueFromResponse with optional custom strategies.

Implementation

ValueFromResponse(
    {GetValueFromResponse<bool>? checkApiSuccess,
    GetValueFromResponse<String?>? getErrorMessage,
    GetValueFromResponse<MapEntry<String, dynamic>?>? getErrorCode}) {
  if (checkApiSuccess != null) this.checkApiSuccess = checkApiSuccess;
  if (getErrorMessage != null) this.getErrorMessage = getErrorMessage;
  if (getErrorCode != null) this.getErrorCode = getErrorCode;
}