toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() => {
      "total": total == null ? null : total,
      "pages": pages == null ? null : pages,
      "limit": limit == null ? null : limit,
      "page": page == null ? null : page,
      "list": list == null
          ? null
          : List<dynamic>.from(list!.map((x) => x.toJson())),
    };