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

use strict;

package Raritan::RPC::devsettings::Crestron::Settings;

sub encode {
    my ($in) = @_;
    my $encoded = {};
    $encoded->{'enableXioCloudConnection'} = ($in->{'enableXioCloudConnection'}) ? JSON::true : JSON::false;
    return $encoded;
}

sub decode {
    my ($agent, $in) = @_;
    my $decoded = {};
    $decoded->{'enableXioCloudConnection'} = ($in->{'enableXioCloudConnection'}) ? 1 : 0;
    return $decoded;
}

1;
