import 'dart:async'; import 'dart:convert'; import 'package:flutter/foundation.dart'; import '/flutter_flow/flutter_flow_util.dart'; import 'api_manager.dart'; export 'api_manager.dart' show ApiCallResponse; const _kPrivateApiFunctionName = 'ffPrivateApiCall'; /// Start PHP Group Code class PhpGroup { static String getBaseUrl() => 'https://freaccess.com.br/freaccess'; static Map headers = {}; static LoginCall loginCall = LoginCall(); static UpdToken updToken = UpdToken(); static RegisterCall registerCall = RegisterCall(); static ForgotPasswordCall forgotPasswordCall = ForgotPasswordCall(); static GetLocalsCall getLocalsCall = GetLocalsCall(); static PostScheduleVisitorCall postScheduleVisitorCall = PostScheduleVisitorCall(); static PostScheduleVisitCall postScheduleVisitCall = PostScheduleVisitCall(); static DebugCallCall debugCallCall = DebugCallCall(); static GetScheduleVisitCall getScheduleVisitCall = GetScheduleVisitCall(); static GetDadosCall getDadosCall = GetDadosCall(); static GetVisitorByDocCall getVisitorByDocCall = GetVisitorByDocCall(); static GetFotoVisitanteCall getFotoVisitanteCall = GetFotoVisitanteCall(); static PostProvVisitSchedulingCall postProvVisitSchedulingCall = PostProvVisitSchedulingCall(); static GetVisitsCall getVisitsCall = GetVisitsCall(); static DeleteVisitCall deleteVisitCall = DeleteVisitCall(); static GetPessoasLocalCall getPessoasLocalCall = GetPessoasLocalCall(); static RespondeSolicitacaoCall respondeSolicitacaoCall = RespondeSolicitacaoCall(); static GetAccessCall getAccessCall = GetAccessCall(); static GetLiberationsCall getLiberationsCall = GetLiberationsCall(); static GetLiberationsCopyCall getLiberationsCopyCall = GetLiberationsCopyCall(); static GetMessagesCall getMessagesCall = GetMessagesCall(); } class UpdToken { Future call({ String? token = '', String? devid = '', String? useruuid = '', }) async { final baseUrl = PhpGroup.getBaseUrl(); return ApiManager.instance.makeApiCall( callName: 'updToken', apiUrl: '$baseUrl/updtoken.php', callType: ApiCallType.POST, headers: { 'Content-Type': 'application/x-www-form-urlencoded', }, params: { 'token': token, 'devid': devid, 'useruuid': useruuid, }, bodyType: BodyType.X_WWW_FORM_URL_ENCODED, returnBody: true, encodeBodyUtf8: false, decodeUtf8: false, cache: false, alwaysAllowBody: false, ); } bool? error(dynamic response) => castToType(getJsonField( response, r'''$.error''', )); } class LoginCall { Future call({ String? email = '', String? password = '', String? uuid = '', String? type = '', String? description = '', }) async { final baseUrl = PhpGroup.getBaseUrl(); return ApiManager.instance.makeApiCall( callName: 'login', apiUrl: '$baseUrl/login.php', callType: ApiCallType.POST, headers: { 'Content-Type': 'application/x-www-form-urlencoded', }, params: { 'email': email, 'password': password, 'uuid': uuid, 'tipo': type, 'descricao': description, }, bodyType: BodyType.X_WWW_FORM_URL_ENCODED, returnBody: true, encodeBodyUtf8: false, decodeUtf8: false, cache: false, isStreamingApi: false, alwaysAllowBody: false, ); } bool? error(dynamic response) => castToType(getJsonField( response, r'''$.error''', )); String? msg(dynamic response) => castToType(getJsonField( response, r'''$.error_msg''', )); List? info(dynamic response) => getJsonField( response, r'''$.error_info''', true, ) as List?; String? userUUID(dynamic response) => castToType(getJsonField( response, r'''$.uid''', )); dynamic userObject(dynamic response) => getJsonField( response, r'''$.user''', ); String? userName(dynamic response) => castToType(getJsonField( response, r'''$.user.name''', )); String? userEmail(dynamic response) => castToType(getJsonField( response, r'''$.user.email''', )); String? userDeviceId(dynamic response) => castToType(getJsonField( response, r'''$.user.dev_id''', )); String? userCreatAt(dynamic response) => castToType(getJsonField( response, r'''$.user.created_at''', )); String? userUpdateAt(dynamic response) => castToType(getJsonField( response, r'''$.user.updated_at''', )); String? userStatus(dynamic response) => castToType(getJsonField( response, r'''$.user.status''', )); } class RegisterCall { Future call({ String? name = '', String? email = '', String? password = '', String? token = '', String? uuid = '', String? tipo = '', String? descricao = '', }) async { final baseUrl = PhpGroup.getBaseUrl(); return ApiManager.instance.makeApiCall( callName: 'register', apiUrl: '$baseUrl/registro.php', callType: ApiCallType.POST, headers: { 'Content-Type': 'application/x-www-form-urlencoded', }, params: { 'name': name, 'email': email, 'password': password, 'token': token, 'uuid': uuid, 'tipo': tipo, 'descricao': descricao, }, bodyType: BodyType.X_WWW_FORM_URL_ENCODED, returnBody: true, encodeBodyUtf8: false, decodeUtf8: false, cache: false, isStreamingApi: false, alwaysAllowBody: false, ); } bool? error(dynamic response) => castToType(getJsonField( response, r'''$.error''', )); String? uid(dynamic response) => castToType(getJsonField( response, r'''$.uid''', )); dynamic user(dynamic response) => getJsonField( response, r'''$.user''', ); String? name(dynamic response) => castToType(getJsonField( response, r'''$.user.name''', )); String? email(dynamic response) => castToType(getJsonField( response, r'''$.user.email''', )); String? devId(dynamic response) => castToType(getJsonField( response, r'''$.user.dev_id''', )); String? createdAt(dynamic response) => castToType(getJsonField( response, r'''$.user.created_at''', )); } class ForgotPasswordCall { Future call({ String? email = '', }) async { final baseUrl = PhpGroup.getBaseUrl(); return ApiManager.instance.makeApiCall( callName: 'forgotPassword', apiUrl: '$baseUrl/iforgot.php', callType: ApiCallType.POST, headers: { 'Content-Type': 'application/x-www-form-urlencoded', }, params: { 'email': email, }, bodyType: BodyType.X_WWW_FORM_URL_ENCODED, returnBody: true, encodeBodyUtf8: false, decodeUtf8: false, cache: false, isStreamingApi: false, alwaysAllowBody: false, ); } bool? error(dynamic response) => castToType(getJsonField( response, r'''$.error''', )); String? msg(dynamic response) => castToType(getJsonField( response, r'''$.error_msg''', )); } class GetLocalsCall { Future call({ String? devUUID = '', String? userUUID = '', }) async { final baseUrl = PhpGroup.getBaseUrl(); return ApiManager.instance.makeApiCall( callName: 'getLocals', apiUrl: '$baseUrl/getLocais.php', callType: ApiCallType.POST, headers: { 'Content-Type': 'application/x-www-form-urlencoded', }, params: { 'devUUID': devUUID, 'userUUID': userUUID, }, bodyType: BodyType.X_WWW_FORM_URL_ENCODED, returnBody: true, encodeBodyUtf8: false, decodeUtf8: false, cache: false, isStreamingApi: false, alwaysAllowBody: false, ); } bool? error(dynamic response) => castToType(getJsonField( response, r'''$.error''', )); List? locais(dynamic response) => getJsonField( response, r'''$.locais''', true, ) as List?; String? cluOwnerID(dynamic response) => castToType(getJsonField( response, r'''$.locais[:].CLU_OWNER_ID''', )); String? cluOwnerDSC(dynamic response) => castToType(getJsonField( response, r'''$.locais[:].CLU_OWNER_DSC''', )); String? cluStatus(dynamic response) => castToType(getJsonField( response, r'''$.locais[:].CLU_STATUS''', )); String? cluBlkMessage(dynamic response) => castToType(getJsonField( response, r'''$.locais[:].CLU_BLK_MESSAGE''', )); String? cliID(dynamic response) => castToType(getJsonField( response, r'''$.locais[:].CLI_ID''', )); String? cliPrefix(dynamic response) => castToType(getJsonField( response, r'''$.locais[:].CLI_PREFIXO''', )); String? cliName(dynamic response) => castToType(getJsonField( response, r'''$.locais[:].CLI_NOME''', )); String? userName(dynamic response) => castToType(getJsonField( response, r'''$.locais[:].USU_NOME''', )); String? cliSysId(dynamic response) => castToType(getJsonField( response, r'''$.locais[:].CLI_SIS_ID''', )); } class PostScheduleVisitorCall { Future call({ String? devUUID = '', String? userUUID = '', String? cliID = '', String? atividade = 'putVisitante', String? documento = '', String? nome = '', String? tipo = '', String? foto = '', }) async { final baseUrl = PhpGroup.getBaseUrl(); return ApiManager.instance.makeApiCall( callName: 'postScheduleVisitor', apiUrl: '$baseUrl/processRequest.php', callType: ApiCallType.POST, headers: { 'Content-Type': 'application/x-www-form-urlencoded', }, params: { 'devUUID': devUUID, 'userUUID': userUUID, 'cliID': cliID, 'atividade': atividade, 'Documento': documento, 'Nome': nome, 'Tipo': tipo, 'Foto': foto, }, bodyType: BodyType.X_WWW_FORM_URL_ENCODED, returnBody: true, encodeBodyUtf8: false, decodeUtf8: false, cache: false, isStreamingApi: false, alwaysAllowBody: false, ); } bool? error(dynamic response) => castToType(getJsonField( response, r'''$.error''', )); String? errorMsg(dynamic response) => castToType(getJsonField( response, r'''$.error_msg''', )); } class PostScheduleVisitCall { Future call({ String? devUUID = '', String? userUUID = '', String? cliID = '', String? atividade = '', String? devDesc = '', String? idVisitante = '', String? dtInicio = '', String? dtFim = '', String? unica = '', int? idMotivo, int? idNAC, String? obs = '', }) async { final baseUrl = PhpGroup.getBaseUrl(); return ApiManager.instance.makeApiCall( callName: 'postScheduleVisit', apiUrl: '$baseUrl/processRequest.php', callType: ApiCallType.POST, headers: { 'Content-Type': 'application/x-www-form-urlencoded', }, params: { 'devUUID': devUUID, 'userUUID': userUUID, 'cliID': cliID, 'atividade': atividade, 'idVisitante': idVisitante, 'dtInicio': dtInicio, 'dtFim': dtFim, 'unica': unica, 'idMotivo': idMotivo, 'idNAC': idNAC, 'obs': obs, 'DevDesc': devDesc, }, bodyType: BodyType.X_WWW_FORM_URL_ENCODED, returnBody: true, encodeBodyUtf8: false, decodeUtf8: false, cache: false, isStreamingApi: false, alwaysAllowBody: false, ); } bool? error(dynamic response) => castToType(getJsonField( response, r'''$.error''', )); String? errorMsg(dynamic response) => castToType(getJsonField( response, r'''$.error_msg''', )); } class DebugCallCall { Future call({ String? devUUID = '', String? userUUID = '', String? cliID = '', String? atividade = '', String? devDesc = '', String? idVisitante = '', String? dtInicio = '', String? dtFim = '', String? unica = '', int? idMotivo, int? idNAC, String? obs = '', }) async { final baseUrl = PhpGroup.getBaseUrl(); return ApiManager.instance.makeApiCall( callName: 'debugCall', apiUrl: '$baseUrl/jonh.php', callType: ApiCallType.POST, headers: { 'Content-Type': 'application/x-www-form-urlencoded', }, params: { 'devUUID': devUUID, 'userUUID': userUUID, 'cliID': cliID, 'atividade': atividade, 'DevDesc': devDesc, 'idVisitante': idVisitante, 'dtInicio': dtInicio, 'dtFim': dtFim, 'unica': unica, 'idMotivo': idMotivo, 'idNAC': idNAC, 'obs': obs, }, bodyType: BodyType.X_WWW_FORM_URL_ENCODED, returnBody: true, encodeBodyUtf8: false, decodeUtf8: false, cache: false, isStreamingApi: false, alwaysAllowBody: false, ); } bool? error(dynamic response) => castToType(getJsonField( response, r'''$.error''', )); String? errorMsg(dynamic response) => castToType(getJsonField( response, r'''$.error_msg''', )); } class GetScheduleVisitCall { Future call({ String? devUUID = '', String? userUUID = '', String? cliUUID = '', String? atividade = '', int? pageSize, int? pageNumber, String? chaveBusca = '', }) async { final baseUrl = PhpGroup.getBaseUrl(); return ApiManager.instance.makeApiCall( callName: 'getScheduleVisit', apiUrl: '$baseUrl/processRequest.php', callType: ApiCallType.POST, headers: { 'Content-Type': 'application/x-www-form-urlencoded', }, params: { 'devUUID': devUUID, 'userUUID': userUUID, 'cliID': cliUUID, 'atividade': atividade, 'pageSize': pageSize, 'pageNumber': pageNumber, 'chaveBusca': chaveBusca, }, bodyType: BodyType.X_WWW_FORM_URL_ENCODED, returnBody: true, encodeBodyUtf8: false, decodeUtf8: false, cache: false, isStreamingApi: false, alwaysAllowBody: false, ); } bool? error(dynamic response) => castToType(getJsonField( response, r'''$.error''', )); String? errorMsg(dynamic response) => castToType(getJsonField( response, r'''$.error_msg''', )); int? totalRows(dynamic response) => castToType(getJsonField( response, r'''$.total_rows''', )); List? visitas(dynamic response) => getJsonField( response, r'''$.visitas''', true, ) as List?; List? visitaDesNome(dynamic response) => (getJsonField( response, r'''$.visitas[:].DES_NOME''', true, ) as List?) ?.withoutNulls .map((x) => castToType(x)) .withoutNulls .toList(); List? visitaMotDescricao(dynamic response) => (getJsonField( response, r'''$.visitas[:].MOT_DESCRICAO''', true, ) as List?) ?.withoutNulls .map((x) => castToType(x)) .withoutNulls .toList(); List? visitaMotDia(dynamic response) => (getJsonField( response, r'''$.visitas[:].MOT_DIA''', true, ) as List?) ?.withoutNulls .map((x) => castToType(x)) .withoutNulls .toList(); List? visitaMotHorafixa(dynamic response) => getJsonField( response, r'''$.visitas[:].MOT_HORAFIXA''', true, ) as List?; List? visitaMotHoras(dynamic response) => (getJsonField( response, r'''$.visitas[:].MOT_HORAS''', true, ) as List?) ?.withoutNulls .map((x) => castToType(x)) .withoutNulls .toList(); List? visitaMotMinutos(dynamic response) => (getJsonField( response, r'''$.visitas[:].MOT_MINUTOS''', true, ) as List?) ?.withoutNulls .map((x) => castToType(x)) .withoutNulls .toList(); List? visitaMotTipo(dynamic response) => (getJsonField( response, r'''$.visitas[:].MOT_TIPO''', true, ) as List?) ?.withoutNulls .map((x) => castToType(x)) .withoutNulls .toList(); List? visitaNacDescricao(dynamic response) => (getJsonField( response, r'''$.visitas[:].NAC_DESCRICAO''', true, ) as List?) ?.withoutNulls .map((x) => castToType(x)) .withoutNulls .toList(); List? visitaVawChave(dynamic response) => (getJsonField( response, r'''$.visitas[:].VAW_CHAVE''', true, ) as List?) ?.withoutNulls .map((x) => castToType(x)) .withoutNulls .toList(); List? visitaVarDestino(dynamic response) => (getJsonField( response, r'''$.visitas[:].VAW_DESTINO''', true, ) as List?) ?.withoutNulls .map((x) => castToType(x)) .withoutNulls .toList(); List? visitaVawDtCriacao(dynamic response) => (getJsonField( response, r'''$.visitas[:].VAW_DTCRIACAO''', true, ) as List?) ?.withoutNulls .map((x) => castToType(x)) .withoutNulls .toList(); List? visitaVawDtFIm(dynamic response) => (getJsonField( response, r'''$.visitas[:].VAW_DTFIM''', true, ) as List?) ?.withoutNulls .map((x) => castToType(x)) .withoutNulls .toList(); List? visitaVawDtInicio(dynamic response) => (getJsonField( response, r'''$.visitas[:].VAW_DTINICIO''', true, ) as List?) ?.withoutNulls .map((x) => castToType(x)) .withoutNulls .toList(); List? visitaVawId(dynamic response) => (getJsonField( response, r'''$.visitas[:].VAW_ID''', true, ) as List?) ?.withoutNulls .map((x) => castToType(x)) .withoutNulls .toList(); List? visitaVawObs(dynamic response) => (getJsonField( response, r'''$.visitas[:].VAW_OBS''', true, ) as List?) ?.withoutNulls .map((x) => castToType(x)) .withoutNulls .toList(); List? visitaVawStatus(dynamic response) => (getJsonField( response, r'''$.visitas[:].VAW_STATUS''', true, ) as List?) ?.withoutNulls .map((x) => castToType(x)) .withoutNulls .toList(); List? visitaVawUnica(dynamic response) => (getJsonField( response, r'''$.visitas[:].VAW_UNICA''', true, ) as List?) ?.withoutNulls .map((x) => castToType(x)) .withoutNulls .toList(); List? visitaVteDocumentos(dynamic response) => (getJsonField( response, r'''$.visitas[:].VTE_DOCUMENTO''', true, ) as List?) ?.withoutNulls .map((x) => castToType(x)) .withoutNulls .toList(); List? visitaVteEmail(dynamic response) => (getJsonField( response, r'''$.visitas[:].VTE_EMAIL''', true, ) as List?) ?.withoutNulls .map((x) => castToType(x)) .withoutNulls .toList(); List? visitaVteEmpresa(dynamic response) => (getJsonField( response, r'''$.visitas[:].VTE_EMPRESA''', true, ) as List?) ?.withoutNulls .map((x) => castToType(x)) .withoutNulls .toList(); List? visitaVteNome(dynamic response) => (getJsonField( response, r'''$.visitas[:].VTE_NOME''', true, ) as List?) ?.withoutNulls .map((x) => castToType(x)) .withoutNulls .toList(); List? visitaVteTipo(dynamic response) => (getJsonField( response, r'''$.visitas[:].VTE_TIPO''', true, ) as List?) ?.withoutNulls .map((x) => castToType(x)) .withoutNulls .toList(); List? visitaVteTelefone(dynamic response) => (getJsonField( response, r'''$.visitas[:].VTE_TELEFONE''', true, ) as List?) ?.withoutNulls .map((x) => castToType(x)) .withoutNulls .toList(); List? visitaVdoNome(dynamic response) => (getJsonField( response, r'''$.visitas[:].VDO_NOME''', true, ) as List?) ?.withoutNulls .map((x) => castToType(x)) .withoutNulls .toList(); int? visitaTotalPages(dynamic response) => castToType(getJsonField( response, r'''$.total_pages''', )); String? page(dynamic response) => castToType(getJsonField( response, r'''$.page''', )); } class GetDadosCall { Future call({ String? devUUID = '', String? userUUID = '', String? cliUUID = '', String? atividade = '', }) async { final baseUrl = PhpGroup.getBaseUrl(); return ApiManager.instance.makeApiCall( callName: 'getDados', apiUrl: '$baseUrl/processRequest.php', callType: ApiCallType.POST, headers: { 'Content-Type': 'application/x-www-form-urlencoded', }, params: { 'devUUID': devUUID, 'userUUID': userUUID, 'cliID': cliUUID, 'atividade': atividade, }, bodyType: BodyType.X_WWW_FORM_URL_ENCODED, returnBody: true, encodeBodyUtf8: false, decodeUtf8: false, cache: false, isStreamingApi: false, alwaysAllowBody: false, ); } bool? errorBolean(dynamic response) => castToType(getJsonField( response, r'''$.error''', )); String? msgStr(dynamic response) => castToType(getJsonField( response, r'''$.error_msg''', )); String? visitedDesNomeStr(dynamic response) => castToType(getJsonField( response, r'''$.visitado.DES_NOME''', )); String? visitedVDOTIdStr(dynamic response) => castToType(getJsonField( response, r'''$.visitado.VDO_ID''', )); String? visitedVDOTNomeStr(dynamic response) => castToType(getJsonField( response, r'''$.visitado.VDO_NOME''', )); String? visitedVDOTipoStr(dynamic response) => castToType(getJsonField( response, r'''$.visitado.VDO_TIPO''', )); String? visitedVDOImeiStr(dynamic response) => castToType(getJsonField( response, r'''$.visitado.VDO_IMEI''', )); String? visitedVDODocumentoStr(dynamic response) => castToType(getJsonField( response, r'''$.visitado.VDO_DOCUMENTO''', )); String? visitedVDOEmailStr(dynamic response) => castToType(getJsonField( response, r'''$.visitado.VDO_EMAIL''', )); String? visitedVDOStatusWebStr(dynamic response) => castToType(getJsonField( response, r'''$.visitado.VDO_STATUSWEB''', )); List? reasonsMotIdList(dynamic response) => (getJsonField( response, r'''$.motivos[:].MOT_ID''', true, ) as List?) ?.withoutNulls .map((x) => castToType(x)) .withoutNulls .toList(); List? reasonsMotDescStrList(dynamic response) => (getJsonField( response, r'''$.motivos[:].MOT_DESCRICAO''', true, ) as List?) ?.withoutNulls .map((x) => castToType(x)) .withoutNulls .toList(); List? reasonsMotTypeStrList(dynamic response) => (getJsonField( response, r'''$.motivos[:].MOT_TIPO''', true, ) as List?) ?.withoutNulls .map((x) => castToType(x)) .withoutNulls .toList(); List? reasonsMotWebStrList(dynamic response) => (getJsonField( response, r'''$.motivos[:].MOT_WEB''', true, ) as List?) ?.withoutNulls .map((x) => castToType(x)) .withoutNulls .toList(); dynamic visitedJson(dynamic response) => getJsonField( response, r'''$.visitado''', ); String? visitedDescIdStr(dynamic response) => castToType(getJsonField( response, r'''$.visitado.DES_ID''', )); String? visitedVDoNotTerceirosStr(dynamic response) => castToType(getJsonField( response, r'''$.visitado.VDO_NOTTERCEIROS''', )); List? reasonsJsonList(dynamic response) => getJsonField( response, r'''$.motivos''', true, ) as List?; List? resonsMotDiaStrList(dynamic response) => (getJsonField( response, r'''$.motivos[:].MOT_DIA''', true, ) as List?) ?.withoutNulls .map((x) => castToType(x)) .withoutNulls .toList(); List? reasonsMotHorasStrList(dynamic response) => (getJsonField( response, r'''$.motivos[:].MOT_HORAS''', true, ) as List?) ?.withoutNulls .map((x) => castToType(x)) .withoutNulls .toList(); List? reasonsMotMinutosStrList(dynamic response) => getJsonField( response, r'''$.motivos[:].MOT_MINUTOS''', true, ) as List?; List? reasonsMotHoraFixaStrList(dynamic response) => getJsonField( response, r'''$.motivos[:].MOT_HORAFIXA''', true, ) as List?; List? levelJsonList(dynamic response) => getJsonField( response, r'''$.niveis''', true, ) as List?; List? levelNACIdStrList(dynamic response) => (getJsonField( response, r'''$.niveis[:].NAC_ID''', true, ) as List?) ?.withoutNulls .map((x) => castToType(x)) .withoutNulls .toList(); List? levelNACDescricaoStrList(dynamic response) => (getJsonField( response, r'''$.niveis[:].NAC_DESCRICAO''', true, ) as List?) ?.withoutNulls .map((x) => castToType(x)) .withoutNulls .toList(); List? levelNACHorIdStrList(dynamic response) => (getJsonField( response, r'''$.niveis[:].NAC_HOR_ID''', true, ) as List?) ?.withoutNulls .map((x) => castToType(x)) .withoutNulls .toList(); List? levelNACIndPermiteReentradaStrList(dynamic response) => (getJsonField( response, r'''$.niveis[:].NAC_INDPERMITEREENTRADA''', true, ) as List?) ?.withoutNulls .map((x) => castToType(x)) .withoutNulls .toList(); List? levelNACObservacaoStrList(dynamic response) => (getJsonField( response, r'''$.niveis[:].NAC_OBSERVACAO''', true, ) as List?) ?.withoutNulls .map((x) => castToType(x)) .withoutNulls .toList(); List? levelNACTempoAntiCaronaStrList(dynamic response) => (getJsonField( response, r'''$.niveis[:].NAC_TEMPOANTICARONA''', true, ) as List?) ?.withoutNulls .map((x) => castToType(x)) .withoutNulls .toList(); List? levelNACTpUserStrList(dynamic response) => (getJsonField( response, r'''$.niveis[:].NAC_TPUSER''', true, ) as List?) ?.withoutNulls .map((x) => castToType(x)) .withoutNulls .toList(); bool? provisionalBoolean(dynamic response) => castToType(getJsonField( response, r'''$.provisional''', )); bool? whatsappBoolean(dynamic response) => castToType(getJsonField( response, r'''$.whatsapp''', )); } class GetVisitorByDocCall { Future call({ String? devUUID = '', String? userUUID = '', String? cliID = '', String? atividade = '', String? documento = '', }) async { final baseUrl = PhpGroup.getBaseUrl(); return ApiManager.instance.makeApiCall( callName: 'getVisitorByDoc', apiUrl: '$baseUrl/processRequest.php', callType: ApiCallType.POST, headers: { 'Content-Type': 'application/x-www-form-urlencoded', }, params: { 'devUUID': devUUID, 'userUUID': userUUID, 'cliID': cliID, 'atividade': atividade, 'Documento': documento, }, bodyType: BodyType.X_WWW_FORM_URL_ENCODED, returnBody: true, encodeBodyUtf8: false, decodeUtf8: false, cache: false, isStreamingApi: false, alwaysAllowBody: false, ); } bool? error(dynamic response) => castToType(getJsonField( response, r'''$.error''', )); String? errorMsg(dynamic response) => castToType(getJsonField( response, r'''$.error_msg''', )); dynamic visitante(dynamic response) => getJsonField( response, r'''$.visitante''', ); String? vistanteId(dynamic response) => castToType(getJsonField( response, r'''$.visitante.VTE_ID''', )); String? visitanteNome(dynamic response) => castToType(getJsonField( response, r'''$.visitante.VTE_NOME''', )); String? visitanteRG(dynamic response) => castToType(getJsonField( response, r'''$.visitante.VTE_RG''', )); String? visitanteDocumento(dynamic response) => castToType(getJsonField( response, r'''$.visitante.VTE_DOCUMENTO''', )); String? visitanteTipo(dynamic response) => castToType(getJsonField( response, r'''$.visitante.VTE_TIPO''', )); } class GetFotoVisitanteCall { Future call({ String? devUUID = '', String? userUUID = '', String? cliID = '', String? atividade = '', String? documento = '', String? tipo = '', }) async { final baseUrl = PhpGroup.getBaseUrl(); return ApiManager.instance.makeApiCall( callName: 'getFotoVisitante', apiUrl: '$baseUrl/getImage.php', callType: ApiCallType.GET, headers: { 'Content-Type': 'application/x-www-form-urlencoded', }, params: { 'devUUID': devUUID, 'userUUID': userUUID, 'cliID': cliID, 'atividade': atividade, 'Documento': documento, 'tipo': tipo, }, returnBody: true, encodeBodyUtf8: false, decodeUtf8: false, cache: false, isStreamingApi: false, alwaysAllowBody: false, ); } } class PostProvVisitSchedulingCall { Future call({ String? devUUID = '', String? userUUID = '', String? cliID = '', String? atividade = '', String? data = '', String? motivo = '', String? nome = '', String? proID = '', }) async { final baseUrl = PhpGroup.getBaseUrl(); return ApiManager.instance.makeApiCall( callName: 'postProvVisitScheduling', apiUrl: '$baseUrl/processRequest.php', callType: ApiCallType.POST, headers: { 'Content-Type': 'application/x-www-form-urlencoded', }, params: { 'devUUID': devUUID, 'userUUID': userUUID, 'cliID': cliID, 'atividade': atividade, 'data': data, 'motivo': motivo, 'nome': nome, 'proID': proID, }, bodyType: BodyType.X_WWW_FORM_URL_ENCODED, returnBody: true, encodeBodyUtf8: false, decodeUtf8: false, cache: false, isStreamingApi: false, alwaysAllowBody: false, ); } String? msg(dynamic response) => castToType(getJsonField( response, r'''$.mensagem''', )); bool? error(dynamic response) => castToType(getJsonField( response, r'''$.error''', )); } class GetVisitsCall { Future call({ String? devUUID = '', String? userUUID = '', String? cliID = '', String? atividade = '', int? pageSize, int? pageNumber, }) async { final baseUrl = PhpGroup.getBaseUrl(); return ApiManager.instance.makeApiCall( callName: 'getVisits', apiUrl: '$baseUrl/processRequest.php', callType: ApiCallType.POST, headers: { 'Content-Type': 'application/x-www-form-urlencoded', }, params: { 'devUUID': devUUID, 'userUUID': userUUID, 'cliID': cliID, 'atividade': atividade, 'pageSize': pageSize, 'pageNumber': pageNumber, }, bodyType: BodyType.X_WWW_FORM_URL_ENCODED, returnBody: true, encodeBodyUtf8: false, decodeUtf8: false, cache: false, isStreamingApi: false, alwaysAllowBody: false, ); } bool? error(dynamic response) => castToType(getJsonField( response, r'''$.error''', )); int? totalRows(dynamic response) => castToType(getJsonField( response, r'''$.total_rows''', )); List? visitasList(dynamic response) => getJsonField( response, r'''$.visitas''', true, ) as List?; List? desNome(dynamic response) => (getJsonField( response, r'''$.visitas[:].DES_NOME''', true, ) as List?) ?.withoutNulls .map((x) => castToType(x)) .withoutNulls .toList(); List? motDesc(dynamic response) => (getJsonField( response, r'''$.visitas[:].MOT_DESCRICAO''', true, ) as List?) ?.withoutNulls .map((x) => castToType(x)) .withoutNulls .toList(); List? motDia(dynamic response) => (getJsonField( response, r'''$.visitas[:].MOT_DIA''', true, ) as List?) ?.withoutNulls .map((x) => castToType(x)) .withoutNulls .toList(); List? motHorafixa(dynamic response) => getJsonField( response, r'''$.visitas[:].MOT_HORAFIXA''', true, ) as List?; List? motHoras(dynamic response) => (getJsonField( response, r'''$.visitas[:].MOT_HORAS''', true, ) as List?) ?.withoutNulls .map((x) => castToType(x)) .withoutNulls .toList(); List? motMinutos(dynamic response) => (getJsonField( response, r'''$.visitas[:].MOT_MINUTOS''', true, ) as List?) ?.withoutNulls .map((x) => castToType(x)) .withoutNulls .toList(); List? motTipo(dynamic response) => (getJsonField( response, r'''$.visitas[:].MOT_TIPO''', true, ) as List?) ?.withoutNulls .map((x) => castToType(x)) .withoutNulls .toList(); List? nACDesc(dynamic response) => (getJsonField( response, r'''$.visitas[:].NAC_DESCRICAO''', true, ) as List?) ?.withoutNulls .map((x) => castToType(x)) .withoutNulls .toList(); List? vAWChave(dynamic response) => (getJsonField( response, r'''$.visitas[:].VAW_CHAVE''', true, ) as List?) ?.withoutNulls .map((x) => castToType(x)) .withoutNulls .toList(); List? vAWDestino(dynamic response) => (getJsonField( response, r'''$.visitas[:].VAW_DESTINO''', true, ) as List?) ?.withoutNulls .map((x) => castToType(x)) .withoutNulls .toList(); List? vAWDTCriacao(dynamic response) => (getJsonField( response, r'''$.visitas[:].VAW_DTCRIACAO''', true, ) as List?) ?.withoutNulls .map((x) => castToType(x)) .withoutNulls .toList(); List? vAWDTFim(dynamic response) => (getJsonField( response, r'''$.visitas[:].VAW_DTFIM''', true, ) as List?) ?.withoutNulls .map((x) => castToType(x)) .withoutNulls .toList(); List? vawdtinicio(dynamic response) => (getJsonField( response, r'''$.visitas[:].VAW_DTINICIO''', true, ) as List?) ?.withoutNulls .map((x) => castToType(x)) .withoutNulls .toList(); List? vAWId(dynamic response) => (getJsonField( response, r'''$.visitas[:].VAW_ID''', true, ) as List?) ?.withoutNulls .map((x) => castToType(x)) .withoutNulls .toList(); List? vAWObs(dynamic response) => (getJsonField( response, r'''$.visitas[:].VAW_OBS''', true, ) as List?) ?.withoutNulls .map((x) => castToType(x)) .withoutNulls .toList(); List? vAWStatus(dynamic response) => (getJsonField( response, r'''$.visitas[:].VAW_STATUS''', true, ) as List?) ?.withoutNulls .map((x) => castToType(x)) .withoutNulls .toList(); List? vAWUnica(dynamic response) => (getJsonField( response, r'''$.visitas[:].VAW_UNICA''', true, ) as List?) ?.withoutNulls .map((x) => castToType(x)) .withoutNulls .toList(); List? vTEDocumento(dynamic response) => (getJsonField( response, r'''$.visitas[:].VTE_DOCUMENTO''', true, ) as List?) ?.withoutNulls .map((x) => castToType(x)) .withoutNulls .toList(); List? vTEEmail(dynamic response) => (getJsonField( response, r'''$.visitas[:].VTE_EMAIL''', true, ) as List?) ?.withoutNulls .map((x) => castToType(x)) .withoutNulls .toList(); List? vTEEmpresa(dynamic response) => (getJsonField( response, r'''$.visitas[:].VTE_EMPRESA''', true, ) as List?) ?.withoutNulls .map((x) => castToType(x)) .withoutNulls .toList(); List? vTENome(dynamic response) => (getJsonField( response, r'''$.visitas[:].VTE_NOME''', true, ) as List?) ?.withoutNulls .map((x) => castToType(x)) .withoutNulls .toList(); List? vTETIpo(dynamic response) => (getJsonField( response, r'''$.visitas[:].VTE_TIPO''', true, ) as List?) ?.withoutNulls .map((x) => castToType(x)) .withoutNulls .toList(); List? vTETelefone(dynamic response) => (getJsonField( response, r'''$.visitas[:].VTE_TELEFONE''', true, ) as List?) ?.withoutNulls .map((x) => castToType(x)) .withoutNulls .toList(); List? vDONome(dynamic response) => (getJsonField( response, r'''$.visitas[:].VDO_NOME''', true, ) as List?) ?.withoutNulls .map((x) => castToType(x)) .withoutNulls .toList(); } class DeleteVisitCall { Future call({ String? devUUID = '', String? userUUID = '', String? cliID = '', String? atividade = '', String? idVisita = '', }) async { final baseUrl = PhpGroup.getBaseUrl(); return ApiManager.instance.makeApiCall( callName: 'deleteVisit', apiUrl: '$baseUrl/processRequest.php', callType: ApiCallType.POST, headers: { 'Content-Type': 'application/x-www-form-urlencoded', }, params: { 'devUUID': devUUID, 'userUUID': userUUID, 'cliID': cliID, 'atividade': atividade, 'idVisita': idVisita, }, bodyType: BodyType.X_WWW_FORM_URL_ENCODED, returnBody: true, encodeBodyUtf8: false, decodeUtf8: false, cache: false, isStreamingApi: false, alwaysAllowBody: false, ); } bool? error(dynamic response) => castToType(getJsonField( response, r'''$.error''', )); String? msg(dynamic response) => castToType(getJsonField( response, r'''$.error_msg''', )); } class GetPessoasLocalCall { Future call({ String? cliID = '', String? ownID = '', String? devUUID = '', String? userUUID = '', }) async { final baseUrl = PhpGroup.getBaseUrl(); return ApiManager.instance.makeApiCall( callName: 'getPessoasLocal', apiUrl: '$baseUrl/getPessoasLocal.php', callType: ApiCallType.POST, headers: { 'Content-Type': 'application/x-www-form-urlencoded', }, params: { 'cliID': cliID, 'ownID': ownID, 'devUUID': devUUID, 'userUUID': userUUID, }, bodyType: BodyType.X_WWW_FORM_URL_ENCODED, returnBody: true, encodeBodyUtf8: false, decodeUtf8: false, cache: false, isStreamingApi: false, alwaysAllowBody: false, ); } bool? error(dynamic response) => castToType(getJsonField( response, r'''$.error''', )); List? pessoas(dynamic response) => getJsonField( response, r'''$.pessoas''', true, ) as List?; List? usuEmail(dynamic response) => (getJsonField( response, r'''$.pessoas[:].USU_EMAIL''', true, ) as List?) ?.withoutNulls .map((x) => castToType(x)) .withoutNulls .toList(); List? usuNome(dynamic response) => (getJsonField( response, r'''$.pessoas[:].USU_NOME''', true, ) as List?) ?.withoutNulls .map((x) => castToType(x)) .withoutNulls .toList(); } class RespondeSolicitacaoCall { Future call({ String? userUUID = '', String? devUUID = '', String? atividade = '', String? referencia = '', String? tarefa = '', String? resposta = '', String? idVisitante = '', String? cliUUID = '', }) async { final baseUrl = PhpGroup.getBaseUrl(); return ApiManager.instance.makeApiCall( callName: 'respondeSolicitacao', apiUrl: '$baseUrl/processRequest.php', callType: ApiCallType.POST, headers: { 'Content-Type': 'application/x-www-form-urlencoded', }, params: { 'userUUID': userUUID, 'devUUID': devUUID, 'cliID': cliUUID, 'atividade': atividade, 'referencia': referencia, 'tarefa': tarefa, 'resposta': resposta, 'idVisitante': idVisitante, }, bodyType: BodyType.X_WWW_FORM_URL_ENCODED, returnBody: true, encodeBodyUtf8: false, decodeUtf8: false, cache: false, isStreamingApi: false, alwaysAllowBody: false, ); } bool? error(dynamic response) => castToType(getJsonField( response, r'''$.error''', )); String? msg(dynamic response) => castToType(getJsonField( response, r'''$.error_msg''', )); } class GetAccessCall { Stream call({ String? devUUID = '', String? userUUID = '', String? cliID = '', String? atividade = '', String? pageSize = '', String? pageNumber = '', String? pesTipo = '', }) { final baseUrl = PhpGroup.getBaseUrl(); final StreamController controller = StreamController(); Future.microtask(() async { try { final response = await ApiManager.instance.makeApiCall( callName: 'getAccess', apiUrl: '$baseUrl/processRequest.php', callType: ApiCallType.POST, headers: { 'Content-Type': 'application/x-www-form-urlencoded', }, params: { 'devUUID': devUUID, 'userUUID': userUUID, 'cliID': cliID, 'atividade': atividade, 'pageSize': pageSize, 'pageNumber': pageNumber, 'pesTipo': pesTipo, }, bodyType: BodyType.X_WWW_FORM_URL_ENCODED, returnBody: true, encodeBodyUtf8: false, decodeUtf8: false, cache: false, isStreamingApi: false, alwaysAllowBody: false, ); controller.add(response); await controller.close(); } catch (e) { controller.addError(e); await controller.close(); } }); return controller.stream; } bool? error(dynamic response) => castToType(getJsonField( response, r'''$.error''', )); int? rows(dynamic response) => castToType(getJsonField( response, r'''$.total_rows''', )); int? pages(dynamic response) => castToType(getJsonField( response, r'''$.total_pages''', )); int? page(dynamic response) => castToType(getJsonField( response, r'''$.page''', )); List? access(dynamic response) => getJsonField( response, r'''$.acessos''', true, ) as List?; List? accessDateTime(dynamic response) => (getJsonField( response, r'''$.acessos[:].ACE_DATAHORA''', true, ) as List?) ?.withoutNulls .map((x) => castToType(x)) .withoutNulls .toList(); List? accessType(dynamic response) => (getJsonField( response, r'''$.acessos[:].ACE_TIPO''', true, ) as List?) ?.withoutNulls .map((x) => castToType(x)) .withoutNulls .toList(); List? accessDesc(dynamic response) => (getJsonField( response, r'''$.acessos[:].ACI_DESCRICAO''', true, ) as List?) ?.withoutNulls .map((x) => castToType(x)) .withoutNulls .toList(); List? accessID(dynamic response) => (getJsonField( response, r'''$.acessos[:].ACI_ID''', true, ) as List?) ?.withoutNulls .map((x) => castToType(x)) .withoutNulls .toList(); List? accessMobileNotify(dynamic response) => (getJsonField( response, r'''$.acessos[:].ACI_NOTIFICA_MOBILE''', true, ) as List?) ?.withoutNulls .map((x) => castToType(x)) .withoutNulls .toList(); List? accessDestDesc(dynamic response) => (getJsonField( response, r'''$.acessos[:].DEST_DESC''', true, ) as List?) ?.withoutNulls .map((x) => castToType(x)) .withoutNulls .toList(); List? accessDestType(dynamic response) => (getJsonField( response, r'''$.acessos[:].DEST_TIPO''', true, ) as List?) ?.withoutNulls .map((x) => castToType(x)) .withoutNulls .toList(); List? accessDestID(dynamic response) => (getJsonField( response, r'''$.acessos[:].DEST_ID''', true, ) as List?) ?.withoutNulls .map((x) => castToType(x)) .withoutNulls .toList(); List? accessDestProID(dynamic response) => (getJsonField( response, r'''$.acessos[:].DEST_PRO_ID''', true, ) as List?) ?.withoutNulls .map((x) => castToType(x)) .withoutNulls .toList(); List? accessIdenExternCode(dynamic response) => (getJsonField( response, r'''$.acessos[:].IDE_CODEXTERNO''', true, ) as List?) ?.withoutNulls .map((x) => castToType(x)) .withoutNulls .toList(); List? accessIdenInternalCode(dynamic response) => (getJsonField( response, r'''$.acessos[:].IDE_CODINTERNO''', true, ) as List?) ?.withoutNulls .map((x) => castToType(x)) .withoutNulls .toList(); List? accessIdenDesc(dynamic response) => (getJsonField( response, r'''$.acessos[:].IDE_DESCRICAO''', true, ) as List?) ?.withoutNulls .map((x) => castToType(x)) .withoutNulls .toList(); List? accessIdenID(dynamic response) => (getJsonField( response, r'''$.acessos[:].IDE_ID''', true, ) as List?) ?.withoutNulls .map((x) => castToType(x)) .withoutNulls .toList(); List? accessIdenStatus(dynamic response) => (getJsonField( response, r'''$.acessos[:].IDE_STATUS''', true, ) as List?) ?.withoutNulls .map((x) => castToType(x)) .withoutNulls .toList(); List? accessIdenUse(dynamic response) => (getJsonField( response, r'''$.acessos[:].IDE_USO''', true, ) as List?) ?.withoutNulls .map((x) => castToType(x)) .withoutNulls .toList(); List? accessPersonID(dynamic response) => (getJsonField( response, r'''$.acessos[:].PES_ID''', true, ) as List?) ?.withoutNulls .map((x) => castToType(x)) .withoutNulls .toList(); List? accessPersonName(dynamic response) => (getJsonField( response, r'''$.acessos[:].PES_NOME''', true, ) as List?) ?.withoutNulls .map((x) => castToType(x)) .withoutNulls .toList(); List? accessPersonType(dynamic response) => (getJsonField( response, r'''$.acessos[:].PES_TIPO''', true, ) as List?) ?.withoutNulls .map((x) => castToType(x)) .withoutNulls .toList(); List? accessDescSet(dynamic response) => (getJsonField( response, r'''$.acessos[:].SET_DESCRICAO''', true, ) as List?) ?.withoutNulls .map((x) => castToType(x)) .withoutNulls .toList(); List? accessIDSet(dynamic response) => (getJsonField( response, r'''$.acessos[:].SET_ID''', true, ) as List?) ?.withoutNulls .map((x) => castToType(x)) .withoutNulls .toList(); List? accessTypeet(dynamic response) => (getJsonField( response, r'''$.acessos[:].SET_TIPO''', true, ) as List?) ?.withoutNulls .map((x) => castToType(x)) .withoutNulls .toList(); } class GetLiberationsCall { Stream call({ String? devUUID = '', String? userUUID = '', String? cliID = '', String? atividade = '', }) { final baseUrl = PhpGroup.getBaseUrl(); final StreamController controller = StreamController(); Future.microtask(() async { try { final response = await ApiManager.instance.makeApiCall( callName: 'getLiberations', apiUrl: '$baseUrl/processRequest.php', callType: ApiCallType.POST, headers: { 'Content-Type': 'application/x-www-form-urlencoded', }, params: { 'devUUID': devUUID, 'userUUID': userUUID, 'cliID': cliID, 'atividade': atividade, }, bodyType: BodyType.X_WWW_FORM_URL_ENCODED, returnBody: true, encodeBodyUtf8: false, decodeUtf8: false, cache: false, isStreamingApi: false, alwaysAllowBody: false, ); controller.add(response); await controller.close(); } catch (e) { controller.addError(e); await controller.close(); } }); return controller.stream; } bool? error(dynamic response) => castToType(getJsonField( response, r'''$.error''', )); List? rqList(dynamic response) => getJsonField( response, r'''$.solicitacoes''', true, ) as List?; List? rqNotID(dynamic response) => (getJsonField( response, r'''$.solicitacoes[:].NOT_ID''', true, ) as List?) ?.withoutNulls .map((x) => castToType(x)) .withoutNulls .toList(); List? rqNotDest(dynamic response) => (getJsonField( response, r'''$.solicitacoes[:].NOT_DESTINO''', true, ) as List?) ?.withoutNulls .map((x) => castToType(x)) .withoutNulls .toList(); List? rqNotSendDate(dynamic response) => (getJsonField( response, r'''$.solicitacoes[:].NOT_DTENVIO''', true, ) as List?) ?.withoutNulls .map((x) => castToType(x)) .withoutNulls .toList(); List? rqNotReceiveDate(dynamic response) => (getJsonField( response, r'''$.solicitacoes[:].NOT_DTRESPOSTA''', true, ) as List?) ?.withoutNulls .map((x) => castToType(x)) .withoutNulls .toList(); List? rqNotEmailAnswer(dynamic response) => (getJsonField( response, r'''$.solicitacoes[:].NOT_EMAILRESPOSTA''', true, ) as List?) ?.withoutNulls .map((x) => castToType(x)) .withoutNulls .toList(); List? rqNotReason(dynamic response) => (getJsonField( response, r'''$.solicitacoes[:].NOT_MOTIVO''', true, ) as List?) ?.withoutNulls .map((x) => castToType(x)) .withoutNulls .toList(); List? rqNotSendMsg(dynamic response) => (getJsonField( response, r'''$.solicitacoes[:].NOT_MSGENVIO''', true, ) as List?) ?.withoutNulls .map((x) => castToType(x)) .withoutNulls .toList(); List? rqNotReceiveMsg(dynamic response) => (getJsonField( response, r'''$.solicitacoes[:].NOT_MSGRESPOSTA''', true, ) as List?) ?.withoutNulls .map((x) => castToType(x)) .withoutNulls .toList(); List? rqNotName(dynamic response) => (getJsonField( response, r'''$.solicitacoes[:].NOT_NOME''', true, ) as List?) ?.withoutNulls .map((x) => castToType(x)) .withoutNulls .toList(); List? rqNotOperator(dynamic response) => (getJsonField( response, r'''$.solicitacoes[:].NOT_OPERADOR''', true, ) as List?) ?.withoutNulls .map((x) => castToType(x)) .withoutNulls .toList(); List? rqNotStatus(dynamic response) => (getJsonField( response, r'''$.solicitacoes[:].NOT_STATUS''', true, ) as List?) ?.withoutNulls .map((x) => castToType(x)) .withoutNulls .toList(); List? rqNotVTE(dynamic response) => (getJsonField( response, r'''$.solicitacoes[:].NOT_VISITANTE''', true, ) as List?) ?.withoutNulls .map((x) => castToType(x)) .withoutNulls .toList(); List? rqVteID(dynamic response) => (getJsonField( response, r'''$.solicitacoes[:].VTE_ID''', true, ) as List?) ?.withoutNulls .map((x) => castToType(x)) .withoutNulls .toList(); List? rqVteName(dynamic response) => (getJsonField( response, r'''$.solicitacoes[:].VTE_NOME''', true, ) as List?) ?.withoutNulls .map((x) => castToType(x)) .withoutNulls .toList(); List? rqVteRG(dynamic response) => (getJsonField( response, r'''$.solicitacoes[:].VTE_RG''', true, ) as List?) ?.withoutNulls .map((x) => castToType(x)) .withoutNulls .toList(); } class GetMessagesCall { Future call({ String? devUUID = '', String? userUUID = '', String? cliID = '', String? atividade = '', String? pageSize = '', String? pageNumber = '', String? tipoDestino = '', }) async { final baseUrl = PhpGroup.getBaseUrl(); return ApiManager.instance.makeApiCall( callName: 'getMessages', apiUrl: '$baseUrl/processRequest.php', callType: ApiCallType.POST, headers: { 'Content-Type': 'application/x-www-form-urlencoded', }, params: { 'devUUID': devUUID, 'userUUID': userUUID, 'cliID': cliID, 'atividade': atividade, 'pageSize': pageSize, 'pageNumber': pageNumber, 'tipoDestino': tipoDestino, }, bodyType: BodyType.X_WWW_FORM_URL_ENCODED, returnBody: true, encodeBodyUtf8: false, decodeUtf8: false, cache: false, isStreamingApi: false, alwaysAllowBody: false, ); } } class GetLiberationsCopyCall { Future call({ String? devUUID = '', String? userUUID = '', String? cliID = '', String? atividade = '', String? page = '', String? pageSize = '', String? filter = '', }) async { final baseUrl = PhpGroup.getBaseUrl(); return ApiManager.instance.makeApiCall( callName: 'getLiberations Copy', apiUrl: '$baseUrl/processRequest.php', callType: ApiCallType.POST, headers: { 'Content-Type': 'application/x-www-form-urlencoded', }, params: { 'devUUID': devUUID, 'userUUID': userUUID, 'cliID': cliID, 'atividade': atividade, 'page': page, 'pageSize': pageSize, 'filter': filter, }, bodyType: BodyType.X_WWW_FORM_URL_ENCODED, returnBody: true, encodeBodyUtf8: false, decodeUtf8: false, cache: false, isStreamingApi: false, alwaysAllowBody: false, ); } bool? error(dynamic response) => castToType(getJsonField( response, r'''$.error''', )); List? rqList(dynamic response) => getJsonField( response, r'''$.solicitacoes''', true, ) as List?; List? rqNotID(dynamic response) => (getJsonField( response, r'''$.solicitacoes[:].NOT_ID''', true, ) as List?) ?.withoutNulls .map((x) => castToType(x)) .withoutNulls .toList(); List? rqNotDest(dynamic response) => (getJsonField( response, r'''$.solicitacoes[:].NOT_DESTINO''', true, ) as List?) ?.withoutNulls .map((x) => castToType(x)) .withoutNulls .toList(); List? rqNotSendDate(dynamic response) => (getJsonField( response, r'''$.solicitacoes[:].NOT_DTENVIO''', true, ) as List?) ?.withoutNulls .map((x) => castToType(x)) .withoutNulls .toList(); List? rqNotReceiveDate(dynamic response) => (getJsonField( response, r'''$.solicitacoes[:].NOT_DTRESPOSTA''', true, ) as List?) ?.withoutNulls .map((x) => castToType(x)) .withoutNulls .toList(); List? rqNotEmailAnswer(dynamic response) => (getJsonField( response, r'''$.solicitacoes[:].NOT_EMAILRESPOSTA''', true, ) as List?) ?.withoutNulls .map((x) => castToType(x)) .withoutNulls .toList(); List? rqNotReason(dynamic response) => (getJsonField( response, r'''$.solicitacoes[:].NOT_MOTIVO''', true, ) as List?) ?.withoutNulls .map((x) => castToType(x)) .withoutNulls .toList(); List? rqNotSendMsg(dynamic response) => (getJsonField( response, r'''$.solicitacoes[:].NOT_MSGENVIO''', true, ) as List?) ?.withoutNulls .map((x) => castToType(x)) .withoutNulls .toList(); List? rqNotReceiveMsg(dynamic response) => (getJsonField( response, r'''$.solicitacoes[:].NOT_MSGRESPOSTA''', true, ) as List?) ?.withoutNulls .map((x) => castToType(x)) .withoutNulls .toList(); List? rqNotName(dynamic response) => (getJsonField( response, r'''$.solicitacoes[:].NOT_NOME''', true, ) as List?) ?.withoutNulls .map((x) => castToType(x)) .withoutNulls .toList(); List? rqNotOperator(dynamic response) => (getJsonField( response, r'''$.solicitacoes[:].NOT_OPERADOR''', true, ) as List?) ?.withoutNulls .map((x) => castToType(x)) .withoutNulls .toList(); List? rqNotStatus(dynamic response) => (getJsonField( response, r'''$.solicitacoes[:].NOT_STATUS''', true, ) as List?) ?.withoutNulls .map((x) => castToType(x)) .withoutNulls .toList(); List? rqNotVTE(dynamic response) => (getJsonField( response, r'''$.solicitacoes[:].NOT_VISITANTE''', true, ) as List?) ?.withoutNulls .map((x) => castToType(x)) .withoutNulls .toList(); List? rqVteID(dynamic response) => (getJsonField( response, r'''$.solicitacoes[:].VTE_ID''', true, ) as List?) ?.withoutNulls .map((x) => castToType(x)) .withoutNulls .toList(); List? rqVteName(dynamic response) => (getJsonField( response, r'''$.solicitacoes[:].VTE_NOME''', true, ) as List?) ?.withoutNulls .map((x) => castToType(x)) .withoutNulls .toList(); List? rqVteRG(dynamic response) => (getJsonField( response, r'''$.solicitacoes[:].VTE_RG''', true, ) as List?) ?.withoutNulls .map((x) => castToType(x)) .withoutNulls .toList(); } /// End PHP Group Code class ApiPagingParams { int nextPageNumber = 0; int numItems = 0; dynamic lastResponse; ApiPagingParams({ required this.nextPageNumber, required this.numItems, required this.lastResponse, }); @override String toString() => 'PagingParams(nextPageNumber: $nextPageNumber, numItems: $numItems, lastResponse: $lastResponse,)'; } String _toEncodable(dynamic item) { return item; } String _serializeList(List? list) { list ??= []; try { return json.encode(list, toEncodable: _toEncodable); } catch (_) { if (kDebugMode) { print("List serialization failed. Returning empty list."); } return '[]'; } } String _serializeJson(dynamic jsonVar, [bool isList = false]) { jsonVar ??= (isList ? [] : {}); try { return json.encode(jsonVar, toEncodable: _toEncodable); } catch (_) { if (kDebugMode) { print("Json serialization failed. Returning empty json."); } return isList ? '[]' : '{}'; } }