fromJson method

void fromJson(
  1. Map<String, dynamic> json
)

Implementation

void fromJson(Map<String, dynamic> json) {
  total = json['total'];
  if (json['items'] != null) {
    items = <T>[];
    json['items'].forEach((v) {
      items.add(buildItem(v));
    });
  }
  filters = json['filters'] != null ? buildFilters(json['filters']) : null;
}