toJson method
Convert to json object.
Implementation
Object toJson() => {
if (mode case final mode?) 'mode': mode.toJson(),
if (allowedFunctionNames case final allowedFunctionNames?)
'allowedFunctionNames': allowedFunctionNames.toList(),
};