toJson method
Implementation
@override
Object toJson() => {
if (mode.isNotDefault) 'mode': mode.toJson(),
if (allowedFunctionNames.isNotDefault)
'allowedFunctionNames': allowedFunctionNames,
if (streamFunctionCallArguments.isNotDefault)
'streamFunctionCallArguments': streamFunctionCallArguments,
};