toMap method
Implementation
@override
Map<String, dynamic> toMap({double? width}) {
return {
'type': 'parent',
'height': height,
'width': width,
'backgroundColor': backgroundColor,
'children': children.map((child) => child.toMap()).toList(),
};
}