NAME

Net::FreeIPA::Convert provides type conversion for Net::FreeIPA

Public methods

rpc_api

Before calling the rpc, convert args and option to their respective JSON type

Arguments are

command: the RPC command (passed to rpc method)
args: arrayref with arguments
args_types: arrayref with argument types
opts: hashref with the options
opts_types_map: hashref with mapping between optoina name and type

Calls rpc with args refarray and opts hashref after conversion.

convert

Convert/cast value to type

If a type is not found in the dispatch tabel, log a warning and return the value as-is.