# SPDX-License-Identifier: BSD-3-Clause
#
# Copyright 2025 Raritan Inc. All rights reserved.
#
# This file was generated by IdlC from Webcam.idl.

use strict;

package Raritan::RPC::webcam::Settings;

use Raritan::RPC::webcam::Format;

sub encode {
    my ($in) = @_;
    my $encoded = {};
    $encoded->{'format'} = Raritan::RPC::webcam::Format::encode($in->{'format'});
    $encoded->{'name'} = "$in->{'name'}";
    return $encoded;
}

sub decode {
    my ($agent, $in) = @_;
    my $decoded = {};
    $decoded->{'format'} = Raritan::RPC::webcam::Format::decode($agent, $in->{'format'});
    $decoded->{'name'} = $in->{'name'};
    return $decoded;
}

1;
