NAME

com::zoho::crm::api::util::DataTypeConverter - This class converts JSON value to the expected data type.

DESCRIPTION

METHODS

init

This method is to initialize the PreConverter and PostConverter lambda functions.

add_to_map

This method is to add PreConverter and PostConverter instance.

Param name : A String containing the data type class name.

Param pre_converter : A PreConverter method.

Param post_converter : A PostConverter method.

pre_convert

This method is to convert JSON value to expected data value.

Param obj : A Object containing the JSON value.

Param type : A String containing the expected method return type.

Returns A specified data Type containing expected data value.

post_convert

This method to convert Perl data to JSON data value.

Param obj : A specified dataType containing a perl data value.

Param type : A String containing the expected method return type.

Returns A specified data Type containing expected data value.