toJson method
Implementation
Map<String, dynamic> toJson() {
final pageNumber = this.pageNumber;
final pageTypes = this.pageTypes;
return {
if (pageNumber != null) 'pageNumber': pageNumber,
if (pageTypes != null)
'pageTypes': pageTypes.map((e) => e.toValue()).toList(),
};
}