class InfoEmpleado {
  InfoEmpleado({
    required this.result,
    required this.response,
    required this.message,
  });

  Result result;
  bool response;
  String message;

  factory InfoEmpleado.fromJson(Map<String, dynamic> json) => InfoEmpleado(
    result: Result.fromJson(json["result"]),
    response: json["response"],
    message: json["message"],
  );

  Map<String, dynamic> toJson() => {
    "result": result.toJson(),
    "response": response,
    "message": message,
  };
}

class Result {
  Result({
    required this.gblUsuario,
    required this.gblRfc,
    required this.gblTipo,
    required this.gblZona,
    required this.gblCorreo,
    required this.gblTelefono,
    required this.gblProDel,
    required this.gblProDet,
    required this.gblProZon,
    required this.gblDinum,
    required this.gblNombre,
    required this.gblPerfiles,
    required this.gblPerfilActual,
  });

  String gblUsuario;
  String gblRfc;
  String gblTipo;
  String gblZona;
  String gblCorreo;
  String gblTelefono;
  String gblProDel;
  String gblProDet;
  String gblProZon;
  String gblDinum;
  String gblNombre;
  List<Map<String, String>> gblPerfiles;
  String gblPerfilActual;

  factory Result.fromJson(Map<String, dynamic> json) => Result(
    gblUsuario: json["GBL_USUARIO"],
    gblRfc: json["GBL_RFC"],
    gblTipo: json["GBL_TIPO"],
    gblZona: json["GBL_ZONA"],
    gblCorreo: json["GBL_CORREO"],
    gblTelefono: json["GBL_TELEFONO"],
    gblProDel: json["GBL_PRO_DEL"],
    gblProDet: json["GBL_PRO_DET"],
    gblProZon: json["GBL_PRO_ZON"],
    gblDinum: json["GBL_DINUM"],
    gblNombre: json["GBL_NOMBRE"],
    gblPerfiles: List<Map<String, String>>.from(json["GBL_PERFILES"].map((x) => Map.from(x).map((k, v) => MapEntry<String, String>(k, v)))),
    gblPerfilActual: json["GBL_PERFIL_ACTUAL"],
  );

  Map<String, dynamic> toJson() => {
    "GBL_USUARIO": gblUsuario,
    "GBL_RFC": gblRfc,
    "GBL_TIPO": gblTipo,
    "GBL_ZONA": gblZona,
    "GBL_CORREO": gblCorreo,
    "GBL_TELEFONO": gblTelefono,
    "GBL_PRO_DEL": gblProDel,
    "GBL_PRO_DET": gblProDet,
    "GBL_PRO_ZON": gblProZon,
    "GBL_DINUM": gblDinum,
    "GBL_NOMBRE": gblNombre,
    "GBL_PERFILES": List<dynamic>.from(gblPerfiles.map((x) => Map.from(x).map((k, v) => MapEntry<String, dynamic>(k, v)))),
    "GBL_PERFIL_ACTUAL": gblPerfilActual,
  };
}