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

use strict;

package Raritan::RPC::net::EthLinkMode;


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

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

1;
