Map<String, dynamic> toMap() => <String, dynamic>{ 'children': children.map((item) => item.toMap()).toList(), };