Map<String, dynamic> toMap() { return { 'total': total, 'size': size, 'current': current, 'pages': pages, 'orders': orders.map((x) => x.toMap()).toList(), 'records': records, }; }