fbmobile/lib/core/models/rest/uploaded.dart

22 lines
465 B
Dart
Raw Permalink Normal View History

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