class Archivos {
  List<Result>? result;
  bool? response;
  String? message;

  Archivos({
    this.result,
    this.response,
    this.message,
  });

  factory Archivos.fromJson(Map<String, dynamic> json) => Archivos(
    result: List<Result>.from(json["result"].map((x) => Result.fromJson(x))),
    response: json["response"],
    message: json["message"],
  );

  Map<String, dynamic> toJson() => {
    "result": List<dynamic>.from(result!.map((x) => x.toJson())),
    "response": response,
    "message": message,
  };
}

class Result {
  String? idar;
  String? esta;
  String? secc;
  String? cate;
  String? ides;
  String? idse;
  String? idca;
  String? arch;
  String? acti;
  String? arfi;
  String? idim;
  String? uscr;
  String? fecr;
  String? usel;
  String? feel;
  String? orde;
  String? femo;
  String? usmo;
  String? dinombre;

  Result({
    this.idar,
    this.esta,
    this.secc,
    this.cate,
    this.ides,
    this.idse,
    this.idca,
    this.arch,
    this.acti,
    this.arfi,
    this.idim,
    this.uscr,
    this.fecr,
    this.usel,
    this.feel,
    this.orde,
    this.femo,
    this.usmo,
    this.dinombre,
  });

  factory Result.fromJson(Map<String, dynamic> json) => Result(
    idar: json["IDAR"],
    esta: json["ESTA"],
    secc: json["SECC"] == null ? '-' : json["SECC"],
    cate: json["CATE"] == null ? '-' : json["CATE"],
    ides: json["IDES"],
    idse: json["IDSE"] == null ? '0' : json["IDSE"],
    idca: json["IDCA"] == null ? '0' : json["IDCA"],
    arch: json["ARCH"],
    acti: json["ACTI"],
    arfi: json["ARFI"],
    idim: json["IDIM"],
    uscr: json["USCR"],
    fecr: json["FECR"],
    usel: json["USEL"] == null ? '0' : json["USEL"],
    feel: json["FEEL"] == null ? '0000-00-00' : json["FEEL"],
    orde: json["ORDE"],
    femo: json["FEMO"] == null ? '0000-00-00' : json["FEMO"],
    usmo: json["USMO"] == null ? '0' : json["USMO"],
    dinombre: json["DINOMBRE"],
  );

  Map<String, dynamic> toJson() => {
    "IDAR": idar,
    "ESTA": esta,
    "SECC": secc == '-' ? null : secc,
    "CATE": cate == '-' ? null : cate,
    "IDES": ides,
    "IDSE": idse == '0' ? null : idse,
    "IDCA": idca == '0' ? null : idca,
    "ARCH": arch,
    "ACTI": acti,
    "ARFI": arfi,
    "IDIM": idim,
    "USCR": uscr,
    "FECR": fecr,
    "USEL": usel == '0' ? null : usel,
    "FEEL": feel == '0000-00-00' ? null : feel,
    "ORDE": orde,
    "FEMO": femo == '0000-00-00' ? null : femo,
    "USMO": usmo == '0' ? null : usmo,
    "DINOMBRE": dinombre,
  };
}