ErrorObject constructor

ErrorObject({
  1. String id = '',
  2. String status = '',
  3. String code = '',
  4. String title = '',
  5. String detail = '',
  6. ErrorSource source = const ErrorSource(),
})

Creates an instance of a JSON:API Error. The links map may contain custom links. The about link passed through the [links'about'] argument takes precedence and will overwrite the about key in links.

Implementation

ErrorObject(
    {this.id = '',
    this.status = '',
    this.code = '',
    this.title = '',
    this.detail = '',
    this.source = const ErrorSource()});