toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final result$data = <String, dynamic>{};
  final l$title = title;
  result$data['title'] = l$title;
  if (_$data.containsKey('description')) {
    final l$description = description;
    result$data['description'] = l$description;
  }
  if (_$data.containsKey('icon')) {
    final l$icon = icon;
    result$data['icon'] = l$icon;
  }
  if (_$data.containsKey('picture')) {
    final l$picture = picture;
    result$data['picture'] = l$picture?.toJson();
  }
  if (_$data.containsKey('status')) {
    final l$status = status;
    result$data['status'] =
        l$status == null ? null : toJson$Enum$FlowStatusEnum(l$status);
  }
  if (_$data.containsKey('conversion')) {
    final l$conversion = conversion;
    result$data['conversion'] = l$conversion;
  }
  if (_$data.containsKey('flow')) {
    final l$flow = flow;
    result$data['flow'] = l$flow?.toJson();
  }
  if (_$data.containsKey('target')) {
    final l$target = target;
    result$data['target'] = l$target?.toJson();
  }
  return result$data;
}