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

use strict;

package Raritan::RPC::security::TpmInfo;

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

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

1;
