2021-02-02 14:33:23 +00:00
|
|
|
import 'package:json_annotation/json_annotation.dart';
|
|
|
|
|
|
|
|
part 'uploaded.g.dart';
|
|
|
|
|
|
|
|
@JsonSerializable()
|
|
|
|
class Uploaded {
|
|
|
|
@JsonKey(required: true)
|
|
|
|
final List<String> ids;
|
|
|
|
|
|
|
|
@JsonKey(required: true)
|
|
|
|
final List<String> urls;
|
|
|
|
|
2021-11-29 23:44:22 +00:00
|
|
|
Uploaded({required this.ids, required this.urls});
|
2021-02-02 14:33:23 +00:00
|
|
|
|
|
|
|
// JSON Init
|
2023-01-16 00:44:34 +00:00
|
|
|
factory Uploaded.fromJson(Map<String, dynamic> json) =>
|
|
|
|
_$UploadedFromJson(json);
|
2021-02-02 14:33:23 +00:00
|
|
|
|
|
|
|
// JSON Export
|
|
|
|
Map<String, dynamic> toJson() => _$UploadedToJson(this);
|
|
|
|
}
|