DataOption<T extends DataClass> constructor
const
DataOption<T extends DataClass> ({
- required DataClassBuilder<
T> instanceBuilder, - required String route,
- IdentifierGetter<
T> ? idFieldGetter, - OnSend? onSend,
- OnReceive? onReceive,
- DataPaginationOptions? paginationOptions,
- String? customOrigin,
- bool parseAfterDelete = false,
- bool parseAfterGet = true,
- bool parseAfterPost = true,
- bool parseAfterPut = false,
- bool logExceptions = true,
- 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,
});