Megaport::Internal::_Obj - Turn JSON objects into Perl objects with accessors

SYNOPSIS

my $eq1 = $mp->session->locations->get(id => 2);
say $eq1->name, $eq1->address->{street};

DESCRIPTION

This is a horrible hack to produce Perl objects with accessors for various pieces of data returned by the Megaport API.

Honestly, it might not even make release. Would love a better way to do this, accessors vs hashrefs feel so much nicer.

AUTHOR

Cameron Daniel <cdaniel@cpan.org>