archivos.dart 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. class Archivos {
  2. Archivos({
  3. this.result,
  4. this.response,
  5. this.message,
  6. });
  7. List<Result>? result;
  8. bool? response;
  9. String? message;
  10. factory Archivos.fromJson(Map<String, dynamic> json) => Archivos(
  11. result: List<Result>.from(json["result"].map((x) => Result.fromJson(x))),
  12. response: json["response"],
  13. message: json["message"],
  14. );
  15. Map<String, dynamic> toJson() => {
  16. "result": List<dynamic>.from(result!.map((x) => x.toJson())),
  17. "response": response,
  18. "message": message,
  19. };
  20. }
  21. class Result {
  22. Result({
  23. this.idpr,
  24. this.subm,
  25. this.modelo,
  26. this.archCad,
  27. this.archZip,
  28. this.archFich,
  29. this.archOtr,
  30. });
  31. String? idpr;
  32. String? subm;
  33. String? modelo;
  34. String? archCad;
  35. String? archZip;
  36. String? archFich;
  37. String? archOtr;
  38. factory Result.fromJson(Map<String, dynamic> json) => Result(
  39. idpr: json["IDPR"],
  40. subm: json["SUBM"],
  41. modelo: json["MODELO"],
  42. archCad: json["ARCH_CAD"] == null ? null : json["ARCH_CAD"],
  43. archZip: json["ARCH_ZIP"] == null ? null : json["ARCH_ZIP"],
  44. archFich: json["ARCH_FICH"] == null ? null : json["ARCH_FICH"],
  45. archOtr: json["ARCH_OTR"] == null ? null : json["ARCH_OTR"],
  46. );
  47. Map<String, dynamic> toJson() => {
  48. "IDPR": idpr,
  49. "SUBM": subm,
  50. "MODELO": modelo,
  51. "ARCH_CAD": archCad == null ? null : archCad,
  52. "ARCH_ZIP": archZip == null ? null : archZip,
  53. "ARCH_FICH": archFich == null ? null : archFich,
  54. "ARCH_OTR": archOtr == null ? null : archOtr,
  55. };
  56. }