toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final result$data = <String, dynamic>{};
  if (_$data.containsKey('audience')) {
    final l$audience = audience;
    result$data['audience'] = l$audience;
  }
  if (_$data.containsKey('trigger')) {
    final l$trigger = trigger;
    result$data['trigger'] = l$trigger == null
        ? null
        : toJson$Enum$FlowAudienceTriggerEnum(l$trigger);
  }
  return result$data;
}