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}); // JSON Init factory UploadedResponse.fromJson(Map json) => _$UploadedResponseFromJson(json); // JSON Export Map toJson() => _$UploadedResponseToJson(this); }