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

use strict;

package Raritan::RPC::pdumodel::Rating_2_0_0;

sub encode {
    my ($in) = @_;
    my $encoded = {};
    $encoded->{'current'} = 1 * $in->{'current'};
    $encoded->{'decimalCurrent'} = 1 * $in->{'decimalCurrent'};
    $encoded->{'minVoltage'} = 1 * $in->{'minVoltage'};
    $encoded->{'maxVoltage'} = 1 * $in->{'maxVoltage'};
    return $encoded;
}

sub decode {
    my ($agent, $in) = @_;
    my $decoded = {};
    $decoded->{'current'} = $in->{'current'};
    $decoded->{'decimalCurrent'} = $in->{'decimalCurrent'};
    $decoded->{'minVoltage'} = $in->{'minVoltage'};
    $decoded->{'maxVoltage'} = $in->{'maxVoltage'};
    return $decoded;
}

1;
