fbmobile/lib/core/models/rest/uploaded.dart
2021-02-02 15:33:23 +01:00

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