toJson method

  1. @override
Object toJson()
override

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(),
};