toJson method
Converts a list of Action objects to a JSON object.
Parameters:
instance
– A list of Action objects.
Returns a list of dynamic objects representing the JSON data.
Implementation
@override
List<dynamic> toJson(List<Action> instance) => instance.toList();