mobile_skt/lib/models/upload_result.model.dart

22 lines
385 B
Dart
Raw Normal View History

2024-03-26 11:35:39 +08:00
class UploadResultModel {
UploadResultModel({
required this.path,
required this.id,
});
final String? path;
final int? id;
factory UploadResultModel.fromJson(Map<String, dynamic> json) {
return UploadResultModel(
path: json["path"],
id: json["id"],
);
}
Map<String, dynamic> toJson() => {
"path": path,
"id": id,
};
}