toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  if (headers == null) {
    headers = new Map();
  }
  return {
    'requestId'     : requestId,
    'timeStamp'     : timeStamp,
    'statusCode'    : statusCode,
    'statusReason'  : statusReason,
    'headers'       : headers,
    'body'          : body,
  };
}