toJson method

  1. @override
List toJson(
  1. List<Action> instance
)

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