fbmobile/lib/core/models/rest/uploaded.dart
2023-01-16 01:44:51 +01:00

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);
}