reservation_fox 0.1.0
reservation_fox: ^0.1.0 copied to clipboard
Generic reservation package with pluggable models and Cubit.
example/lib/main.dart
import 'package:reservation_fox/reservation_fox.dart';
final api = ReservationFoxApi(baseUrl: 'https://api.example.com');
final repo = GenericRepository<Slot, ReservationResult>(
api,
fromJsonT: (j) => Slot.fromJson(j),
fromJsonR: (j) => ReservationResult.fromJson(j),
);
final cubit = GenericCubit<Slot, ReservationResult>(repo);