mirror of
https://github.com/nini22P/iris.git
synced 2026-05-22 01:26:51 +08:00
20 lines
503 B
Dart
20 lines
503 B
Dart
import 'package:freezed_annotation/freezed_annotation.dart';
|
|
import 'package:flutter/foundation.dart';
|
|
import 'package:iris/models/file.dart';
|
|
|
|
part 'progress.freezed.dart';
|
|
part 'progress.g.dart';
|
|
|
|
@freezed
|
|
class Progress with _$Progress {
|
|
const factory Progress({
|
|
required DateTime dateTime,
|
|
required Duration position,
|
|
required Duration duration,
|
|
required FileItem file,
|
|
}) = _Progress;
|
|
|
|
factory Progress.fromJson(Map<String, dynamic> json) =>
|
|
_$ProgressFromJson(json);
|
|
}
|