fromJson static method

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

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

Implementation

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

  return PaginationLinks(
    first: PaginationLink.fromJson(json[r'first']),
    last: PaginationLink.fromJson(json[r'last']),
    next: PaginationLink.fromJson(json[r'next']),
    self: PaginationLink.fromJson(json[r'self']),
  );
}