ResponseModel constructor
const
ResponseModel({
- required HeaderModel header,
- required int responseCode,
- required String responseMsg,
- 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 = '',
});