toJson method
Implementation
@override
Object toJson() => {
if (action.isNotDefault) 'action': action.toJson(),
if (service.isNotDefault) 'service': service,
if (exemptedMember.isNotDefault) 'exemptedMember': exemptedMember,
if (logType.isNotDefault) 'logType': logType,
};