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

22 lines
502 B
Dart
Raw Permalink Normal View History

2021-02-02 17:17:48 +00:00
import 'package:json_annotation/json_annotation.dart';
part 'uploaded_multi.g.dart';
@JsonSerializable()
class UploadedMulti {
@JsonKey(required: true)
final String url;
@JsonKey(required: true, name: "url_id")
final String urlId;
UploadedMulti({required this.url, required this.urlId});
2021-02-02 17:17:48 +00:00
// JSON Init
2023-01-16 00:44:34 +00:00
factory UploadedMulti.fromJson(Map<String, dynamic> json) =>
_$UploadedMultiFromJson(json);
2021-02-02 17:17:48 +00:00
// JSON Export
Map<String, dynamic> toJson() => _$UploadedMultiToJson(this);
}