toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final limit = this.limit;
  final offset = this.offset;
  final period = this.period;
  return {
    if (limit != null) 'limit': limit,
    if (offset != null) 'offset': offset,
    if (period != null) 'period': period.toValue(),
  };
}