toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  return {
    'id': id,
    'type': EnumToString.convertToString(type),
    'actions': actions.map((e) => e.toJson()).toList(),
  };
}