mirror of
https://git.selfprivacy.org/kherel/selfprivacy.org.app.git
synced 2024-11-09 18:33:11 +00:00
36 lines
801 B
Dart
36 lines
801 B
Dart
import 'package:json_annotation/json_annotation.dart';
|
|
|
|
part 'server_job.g.dart';
|
|
|
|
@JsonSerializable()
|
|
class ServerJob {
|
|
factory ServerJob.fromJson(final Map<String, dynamic> json) =>
|
|
_$ServerJobFromJson(json);
|
|
ServerJob({
|
|
required this.name,
|
|
required this.description,
|
|
required this.status,
|
|
required this.uid,
|
|
required this.updatedAt,
|
|
required this.createdAt,
|
|
final this.error,
|
|
final this.progress,
|
|
final this.result,
|
|
final this.statusText,
|
|
final this.finishedAt,
|
|
});
|
|
|
|
final String name;
|
|
final String description;
|
|
final String status;
|
|
final String uid;
|
|
final String updatedAt;
|
|
final DateTime createdAt;
|
|
|
|
final String? error;
|
|
final int? progress;
|
|
final String? result;
|
|
final String? statusText;
|
|
final String? finishedAt;
|
|
}
|