21 lines
465 B
Dart
21 lines
465 B
Dart
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;
|
|
|
|
Uploaded({required this.ids, required this.urls});
|
|
|
|
// JSON Init
|
|
factory Uploaded.fromJson(Map<String, dynamic> json) =>
|
|
_$UploadedFromJson(json);
|
|
|
|
// JSON Export
|
|
Map<String, dynamic> toJson() => _$UploadedToJson(this);
|
|
}
|