toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() => <String, dynamic>{
  "stepId": stepId,
  "number": number,
  "title": title,
  "description": description,
  "icon": icon,
  "backgroundImageUrl": backgroundImageUrl,
  "fields": fields.map((UserFlowField e) => e.toJson()).toList(),
  "files": files.map((UserFlowFileRequirement e) => e.toJson()).toList(),
  "navigation": navigation?.toJson(),
  "fieldGroups": fieldGroups?.map((FieldGroup e) => e.toJson()).toList(),
};