toJson method

Map<String, dynamic> toJson()

Converts this value to a JSON-compatible map.

Implementation

Map<String, dynamic> toJson() => {
  'items': items.map((item) => item.toJson()).toList(growable: false),
  'total': total,
  'limit': limit,
  'offset': offset,
};