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

use strict;

package Raritan::RPC::peripheral::PosElement_2_0_0;


sub encode {
    my ($in) = @_;
    my $encoded = {};
    $encoded->{'portType'} = 1 * $in->{'portType'};
    $encoded->{'port'} = "$in->{'port'}";
    return $encoded;
}

sub decode {
    my ($agent, $in) = @_;
    my $decoded = {};
    $decoded->{'portType'} = $in->{'portType'};
    $decoded->{'port'} = $in->{'port'};
    return $decoded;
}

1;
