toJson method
Implementation
Map<String, dynamic> toJson() => {
'availableTypes': availableTypes.map((e) => e.name).toList(),
'availableTools': availableTools.map((e) => e.name).toList(),
'initAttribute': initAttribute.toJson()
};