Chart/Plotly/Trace/Scatterpolargl/Selected.pm untested

filter: Statementstmt 0.0% 0 / 38 Branchbran 0.0% 0 / 10 Conditioncond 0.0% 0 / 8 MC/DCmcdc 0.0% 0 / 5 Subroutinesub 0.0% 0 / 6 Podpod 0.0% 0 / 1 totaltotal 0.0% 0 / 68 CC 5 SCAR 27.7
CC
5
Cov
0%
TO_JSON
30.0
BEGIN
2.0
BEGIN
2.0
CRAP 16.0
1 package Chart::Plotly::Trace::Scatterpolargl::Selected;
2 use Moose;
3 use MooseX::ExtraArgs;
4 use Moose::Util::TypeConstraints qw(enum union);
5 if ( !defined Moose::Util::TypeConstraints::find_type_constraint('PDL') ) {
6 Moose::Util::TypeConstraints::type('PDL');
7 }
8  
9 use Chart::Plotly::Trace::Scatterpolargl::Selected::Marker;
10 use Chart::Plotly::Trace::Scatterpolargl::Selected::Textfont;
11  
12 our $VERSION = '0.042'; # VERSION
13  
14 # ABSTRACT: This attribute is one of the possible options for the trace scatterpolargl.
15  
16 sub TO_JSON {
17 my $self = shift;
18 my $extra_args = $self->extra_args // {};
19 my $meta = $self->meta;
20 my %hash = %$self;
21 for my $name ( sort keys %hash ) {
22 my $attr = $meta->get_attribute($name);
23 if ( defined $attr ) {
24 my $value = $hash{$name};
25 my $type = $attr->type_constraint;
26 if ( $type && $type->equals('Bool') ) {
27 $hash{$name} = $value ? \1 : \0;
28 }
29 }
30 }
31 %hash = ( %hash, %$extra_args );
32 delete $hash{'extra_args'};
33 if ( $self->can('type') && ( !defined $hash{'type'} ) ) {
34 $hash{type} = $self->type();
35 }
36 return \%hash;
37 }
38  
39 has marker => ( is => "rw",
40 isa => "Maybe[HashRef]|Chart::Plotly::Trace::Scatterpolargl::Selected::Marker", );
41  
42 has textfont => ( is => "rw",
43 isa => "Maybe[HashRef]|Chart::Plotly::Trace::Scatterpolargl::Selected::Textfont", );
44  
45 __PACKAGE__->meta->make_immutable();
46 1;
47  
48 __END__