2026-05-06 00:26:44 +02:00
|
|
|
import 'package:json_annotation/json_annotation.dart';
|
|
|
|
|
|
|
|
|
|
part 'mpv_config_models.g.dart';
|
|
|
|
|
|
|
|
|
|
@JsonSerializable()
|
2025-12-20 15:43:14 +01:00
|
|
|
class MpvPreset {
|
|
|
|
|
final String name;
|
2026-03-02 23:05:52 +01:00
|
|
|
final String text;
|
2025-12-20 15:43:14 +01:00
|
|
|
final DateTime createdAt;
|
|
|
|
|
|
2026-03-02 23:05:52 +01:00
|
|
|
const MpvPreset({required this.name, required this.text, required this.createdAt});
|
2025-12-20 15:43:14 +01:00
|
|
|
|
2026-05-06 00:26:44 +02:00
|
|
|
factory MpvPreset.fromJson(Map<String, dynamic> json) => _$MpvPresetFromJson(json);
|
2025-12-20 15:43:14 +01:00
|
|
|
|
2026-05-06 00:26:44 +02:00
|
|
|
Map<String, dynamic> toJson() => _$MpvPresetToJson(this);
|
2025-12-20 15:43:14 +01:00
|
|
|
}
|