Paging.fromMap constructor Null safety

Paging.fromMap(
  1. Map map
)

Links related to the response document, including paging links.

Implementation

factory Paging.fromMap(Map<dynamic, dynamic> map) {
  map = map.cast<String, dynamic>();

  return Paging(
    total: map['total'] as int?,
    limit: map['limit'] as int?,
  );
}