MFResponse constructor

MFResponse(
  1. {@required Map mfResponse}
)

Implementation

MFResponse({@required Map mfResponse}) {
  this._status = (mfResponse ?? const {})[STATUS] ?? -1;
  this._errorCode = (mfResponse ?? const {})[ERROR_CODE] ?? '';
  this._errorMsg = (mfResponse ?? const {})[ERROR_MSG] ?? '';
  this._responseText = (mfResponse ?? const {})[RESPONSE_TEXT] ?? '';
  this._responseJSON = (mfResponse ?? const {})[RESPONSE_JSON] ?? {};
  this._headers = (mfResponse ?? const {})[HEADERS] ?? {};
}