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::*
.
*MPORTANT* 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.
AUTHOR
Yanga Kandeni <yangak@cpan.org>
Valters Skrupskis <malishew@cpan.org>
COPYRIGHT
Copyright 2023- PayProp
LICENSE
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
If you would like to contribute documentation or file a bug report then please raise an issue / pull request: