NotionResponse constructor

NotionResponse({
  1. ObjectTypes object = ObjectTypes.None,
  2. int status = 0,
  3. String? code,
  4. String? message,
})

Main Notion response constructor.

Can receive the object type, the status code, the error code and the error message.

By default the object type is None and the status is zero.

Implementation

NotionResponse({
  this.object: ObjectTypes.None,
  this.status: 0,
  this.code,
  this.message,
});