NAME
PayProp::API::Public::Client::Role::JSON - Role to convert model to JSON structure.
SYNOPSIS
package Module::Requiring::JSON;
with qw/ PayProp::API::Public::Client::Role::JSON /;
...;
__PACKAGE__->meta->make_immutable;
my $Module = Module::Requiring::JSON->new;
my $structure_ref = $Module->TO_JSON;
DESCRIPTION
Role to convert Mouse
object to hashref structure via TO_JSON
method. This role should only be consumed by parent models e.g. PayProp::API::Public::Client::Response::Export::*
.
*IMPORTANT* The purpose of this role is to help with debugging API object response structures. It is not advised to rely on the results returned from the TO_JSON
method. The results from this method can change without prior warning.