2024-09-17 23:19:05 -04:00
|
|
|
import 'package:freezed_annotation/freezed_annotation.dart';
|
|
|
|
|
import 'package:vaani/features/per_book_settings/models/nullable_player_settings.dart';
|
|
|
|
|
|
|
|
|
|
part 'book_settings.freezed.dart';
|
|
|
|
|
part 'book_settings.g.dart';
|
|
|
|
|
|
|
|
|
|
/// per book settings
|
|
|
|
|
@freezed
|
2026-01-10 16:46:06 +05:30
|
|
|
sealed class BookSettings with _$BookSettings {
|
2024-09-17 23:19:05 -04:00
|
|
|
const factory BookSettings({
|
|
|
|
|
required String bookId,
|
|
|
|
|
@Default(NullablePlayerSettings()) NullablePlayerSettings playerSettings,
|
|
|
|
|
}) = _BookSettings;
|
|
|
|
|
|
|
|
|
|
factory BookSettings.fromJson(Map<String, dynamic> json) =>
|
|
|
|
|
_$BookSettingsFromJson(json);
|
|
|
|
|
}
|