toMap method

Map<String, dynamic> toMap()

Implementation

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