$self }
}
}
if ( delete $options->{ to_json } ) {
no strict 'refs'; ## no critic ( ProhibitNoStrict )
*{ "$class\::TO_JSON" } = sub { $_[ 0 ]->name }
}
}
croak "Unkn
objects in the list.
=item * C<to_json> (a boolean value; available as of version 1.3.0)
If the C<to_json> option is set to true, the builder creates a C<TO_JSON()>
method (object method). This def