ResponseModel constructor

const ResponseModel({
  1. required HeaderModel header,
  2. required int responseCode,
  3. required String responseMsg,
  4. String rawResponse = '',
})

converts pinelabs response to dart object header is the header of the response. Which is same as the header passed in request. responseCode is the response code of the response. responseMsg is the response message of the response. rawResponse is the string response received from pinelabs.

Implementation

const ResponseModel({
  required this.header,
  required this.responseCode,
  required this.responseMsg,
  this.rawResponse = '',
});