bond_network library
Classes
- Api
- ApiClient
-
BaseBondApiRequest<
T> - Represents a base class for configuring and executing HTTP requests using Dio with additional features such as custom header, body, files, cache and error handling.
- BondFire
- BondApiClient is a simple API client built on top of Dio. BondFire is a singleton API client built on top of Dio.
- ConnectionFailure
- DataSource
- DoubleConverter
-
A custom
JsonConverterthat converts a JSON value to double. Supports String, int, and double types from JSON. - Failure
-
GetBondApiRequest<
T extends Jsonable> - A specialized GET request class that supports caching and streaming.
- Links
-
ListMResponse<
T extends Model, G extends Jsonable> -
ListResponse<
T extends Model> - A generic class for list responses from an API.
- Meta
- Model
-
ResponseConverter<
T extends Jsonable> - ServerExceptionFactory
- ServerFailure
-
SingleMResponse<
T extends Model, G extends Jsonable> -
SingleResponse<
T extends Model> - SuccessResponse
Enums
- CachePolicy
- Caching strategy for GET requests.
Extensions
-
XListResponse
on ListResponse<
T> -
Extension to add a
mergemethod to ListResponse instances.
Typedefs
-
DataTransformer
= Map<
String, dynamic> Function(dynamic data) - A typedef for a data transformer function.
-
ErrorFactory<
T extends Error> = T Function(Map< String, dynamic> ) - A typedef for a factory function that converts JSON error responses to a custom Error.
-
Factory<
T> = T Function(Map< String, dynamic> ) -
A typedef for a factory function that converts JSON data to a model of type
T.