toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  return {
    'id': id,
    'name': name,
    if (active != null) 'active': active,
    if (createdAt != null) 'createdAt': createdAt?.toIso8601String(),
    if (updatedAt != null) 'updatedAt': updatedAt?.toIso8601String(),
    'nodes': nodes,
    'connections': connections,
    'settings': settings,
    'staticData': staticData,
    if (tags != null) 'tags': tags!.map((tag) => tag.toJson()).toList(),
  };
}