toJson method

Map<String, String> toJson()

Implementation

Map<String, String> toJson() {
  return {
    if (count != null) ...{"count": count!.toString()},
    if (page != null) ...{"page": page!.toString()},
    if (ordering != null) ...{"order": ordering!.name},
  };
}