toJson method

Map<String, dynamic> toJson()

Converts the trigger parsing result into a JSON-compatible map.

Implementation

Map<String, dynamic> toJson() => {
  'trigger': trigger?.toJson(),
  if (functionCall != null) 'functionCall': functionCall!.toJson(),
};