TriggerParse.fromJson constructor
Creates a TriggerParse instance from a JSON map.
Utilizes TriggerExtension to safely map string-based triggers to the Trigger enum.
Implementation
factory TriggerParse.fromJson(Map<String, dynamic> json) {
return TriggerParse(
trigger: json['trigger'] == null
? null
: TriggerExtension.fromJson(json['trigger']),
functionCall: json['functionCall'] == null
? null
: FunctionCall.fromJson(json['functionCall']),
);
}