ListEntity<T>.fromJson constructor
Implementation
factory ListEntity.fromJson(
Map<String, dynamic> json,
List<T> results,
) =>
ListEntity(
nextUrl: json['next'],
previousUrl: json['previous'],
limit: json['per_page'],
total: json['total'],
totals: json['totals'] != null
? ListEntityTotals(
removed: json['totals']['removed'],
stored: json['totals']['stored'],
unstored: json['totals']['unstored'],
)
: null,
results: results,
);