fromJson static method

InternalServicePagination? fromJson(
  1. Map<String, dynamic>? json
)
override

Returns a new InternalServicePagination instance and imports its values from json if it's non-null, null if json is null.

Implementation

static InternalServicePagination? fromJson(Map<String, dynamic>? json) {
  if (json == null) {
    return null;
  }

  return InternalServicePagination(
    limit: json[r'limit'],
    page: json[r'page'],
    pages: json[r'pages'],
    total: json[r'total'],
    links: PaginationLinks.fromJson(json[r'_links']),
    embedded: InternalServiceCollection.fromJson(json[r'_embedded']),
  );
}