toJson method

Map<String, dynamic> toJson()

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(),
  };
}