toJson method

Map<String, dynamic> toJson()

Converts the FormModel into a JSON-compatible map.

Implementation

Map<String, dynamic> toJson() {
  return {'_id': id, 'path': path, 'title': title, 'components': components.map((c) => c.toJson()).toList()};
}