AsposeSlidesCloud-SlidesApi

 view release on metacpan or  search on metacpan

lib/AsposeSlidesCloud/Object/FontSubstRule.pm  view on Meta::CPAN

# NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually.
# REF: https://github.com/swagger-api/swagger-codegen
#

#
# NOTE: This class is auto generated by the swagger code generator program. 
# Do not edit the class manually.
# Ref: https://github.com/swagger-api/swagger-codegen
#
__PACKAGE__->mk_classdata('attribute_map' => {});
__PACKAGE__->mk_classdata('swagger_types' => {});
__PACKAGE__->mk_classdata('method_documentation' => {}); 
__PACKAGE__->mk_classdata('class_documentation' => {});

# new object
sub new { 
    my ($class, %args) = @_; 

	my $self = bless {}, $class;
	
	foreach my $attribute (keys %{$class->attribute_map}) {
		my $args_key = $class->attribute_map->{$attribute};
		$self->$attribute( $args{ $args_key } );
	}
	return $self;
}  

# used by JSON for serialization
sub TO_JSON { 
    my $self = shift;
    my $_data = {};
    foreach my $_key (keys %{$self->attribute_map}) {
        if (defined $self->{$_key}) {
            $_data->{$self->attribute_map->{$_key}} = $self->{$_key};
        }
    }
    return $_data;
}


__PACKAGE__->class_documentation({description => 'Represents font substitution rule.',
                                  class => 'FontSubstRule',
                                  required => [], # TODO
}                                 );

__PACKAGE__->method_documentation({
    'source_font' => {
    	datatype => 'string',
    	base_name => 'SourceFont',
    	description => 'Font to substitute.',
    	format => '',
    	read_only => '',
    		},
    'target_font' => {
    	datatype => 'string',
    	base_name => 'TargetFont',
    	description => 'Substitution font.',
    	format => '',
    	read_only => '',
    		},
    'not_found_only' => {
    	datatype => 'boolean',
    	base_name => 'NotFoundOnly',
    	description => 'Substitute when font is not found. Default: true.',
    	format => '',
    	read_only => '',
    		},
});

__PACKAGE__->swagger_types( {
    'source_font' => 'string',
    'target_font' => 'string',
    'not_found_only' => 'boolean'
} );

__PACKAGE__->attribute_map( {
    'source_font' => 'SourceFont',
    'target_font' => 'TargetFont',
    'not_found_only' => 'NotFoundOnly'
} );

__PACKAGE__->mk_accessors(keys %{__PACKAGE__->attribute_map});


1;



( run in 1.881 second using v1.01-cache-2.11-cpan-39bf76dae61 )