mirror of
https://github.com/Dr-Blank/Vaani.git
synced 2025-12-06 19:19:28 +00:00
18 lines
547 B
Dart
18 lines
547 B
Dart
|
|
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
|
||
|
|
class BookSettings with _$BookSettings {
|
||
|
|
const factory BookSettings({
|
||
|
|
required String bookId,
|
||
|
|
@Default(NullablePlayerSettings()) NullablePlayerSettings playerSettings,
|
||
|
|
}) = _BookSettings;
|
||
|
|
|
||
|
|
factory BookSettings.fromJson(Map<String, dynamic> json) =>
|
||
|
|
_$BookSettingsFromJson(json);
|
||
|
|
}
|