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

21 lines
502 B
Dart

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});
// JSON Init
factory UploadedMulti.fromJson(Map<String, dynamic> json) =>
_$UploadedMultiFromJson(json);
// JSON Export
Map<String, dynamic> toJson() => _$UploadedMultiToJson(this);
}