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

23 lines
529 B
Dart
Raw Normal View History

2021-02-02 14:33:23 +00:00
import 'package:json_annotation/json_annotation.dart';
import 'uploaded.dart';
part 'uploaded_response.g.dart';
@JsonSerializable()
class UploadedResponse {
@JsonKey(required: true)
final String status;
@JsonKey(required: true)
final Uploaded data;
UploadedResponse({required this.status, required this.data});
2021-02-02 14:33:23 +00:00
// JSON Init
factory UploadedResponse.fromJson(Map<String, dynamic> json) => _$UploadedResponseFromJson(json);
2021-02-02 14:33:23 +00:00
// JSON Export
Map<String, dynamic> toJson() => _$UploadedResponseToJson(this);
}