toMap method
Implementation
Map<String, dynamic> toMap() {
return {
'type': type,
'name': name,
'description': description,
'route': route,
'pages': pages.map((x) => x.toMap()).toList(),
'handlers': handlers.map((x) => x.toMap()).toList(),
};
}