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

use strict;

package Raritan::RPC::assetmgrmodel::AssetStripConfig_1_0_1::LEDColor;

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

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

1;
