toJson method
Implementation
@override
Object toJson() => {
if (action.isNotDefault) 'action': action.toJson(),
if (role.isNotDefault) 'role': role,
if (member.isNotDefault) 'member': member,
if (condition != null) 'condition': condition!.toJson(),
};