blob: 0a6b099727e39ea0b6f4c3ad2c47b7bb93e741dc [file] [log] [blame]
class ResponseBody:
def __init__(self, allow=None, explain=None):
"""The response body class is used to unify the JSON output format"""
self.allow = allow
self.explain = explain
def to_dict(self):
"""Convert to dictionary format"""
return {
"allow": self.allow,
"explain": self.explain
}