You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
423 B
19 lines
423 B
import 'package:json_annotation/json_annotation.dart';
|
|
|
|
part 'crossfade_state.g.dart';
|
|
|
|
@JsonSerializable()
|
|
class CrossfadeState {
|
|
CrossfadeState(
|
|
this.duration, {
|
|
required this.isEnabled,
|
|
});
|
|
|
|
final bool isEnabled;
|
|
final int duration;
|
|
|
|
factory CrossfadeState.fromJson(Map<String, dynamic> json) =>
|
|
_$CrossfadeStateFromJson(json);
|
|
|
|
Map<String, dynamic> toJson() => _$CrossfadeStateToJson(this);
|
|
}
|
|
|