toMap method
Implementation
Map<String, dynamic> toMap() => {
'name': name,
'component_id': componentId,
'key': key,
'has_navigation': hasNavigation,
'attributes': attributes?.map((e) => e.toMap()).toList(),
'children': children?.map((e) => e.toMap()).toList(),
};