DataOption<T extends DataClass> constructor

const DataOption<T extends DataClass>({
  1. required DataClassBuilder<T> instanceBuilder,
  2. required String route,
  3. IdentifierGetter<T>? idFieldGetter,
  4. OnSend? onSend,
  5. OnReceive? onReceive,
  6. DataPaginationOptions? paginationOptions,
  7. String? customOrigin,
  8. bool parseAfterDelete = false,
  9. bool parseAfterGet = true,
  10. bool parseAfterPost = true,
  11. bool parseAfterPut = false,
  12. bool logExceptions = true,
  13. bool throwErrors = true,
})

Implementation

const DataOption({
  required this.instanceBuilder,
  required this.route,
  this.idFieldGetter,
  //this.serializer,
  //this.deserializer,
  this.onSend,
  this.onReceive,
  this.paginationOptions,
  this.customOrigin,
  this.parseAfterDelete = false,
  this.parseAfterGet = true,
  this.parseAfterPost = true,
  this.parseAfterPut = false,
  this.logExceptions = true,
  this.throwErrors = true,
});