PagedListUserDetailsApplicationUser.fromJson constructor

PagedListUserDetailsApplicationUser.fromJson(
  1. Map<String, Object?> json
)

Implementation

factory PagedListUserDetailsApplicationUser.fromJson(
    Map<String, Object?> json) {
  return PagedListUserDetailsApplicationUser(
    endIndex: (json[r'end-index'] as num?)?.toInt(),
    items: (json[r'items'] as List<Object?>?)
            ?.map((i) =>
                UserDetails.fromJson(i as Map<String, Object?>? ?? const {}))
            .toList() ??
        [],
    maxResults: (json[r'max-results'] as num?)?.toInt(),
    size: (json[r'size'] as num?)?.toInt(),
    startIndex: (json[r'start-index'] as num?)?.toInt(),
  );
}