Map<String, dynamic> toMap() => { 'child': child.runtimeType.toString(), 'value': value.toString(), 'children': children.builder((item) => item.toMap()), };