toJson method
Converts this DynamicStep instance to a JSON map.
Implementation
Map<String, dynamic> toJson() => {
'title': title,
if (subtitle != null) 'subtitle': subtitle,
'fields': fields.map((e) => e.toJson()).toList(),
'isActive': isActive,
};