fromJson static method

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

Implementation

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

  return PageBlockList(
    items: List<PageBlockListItem>.from(
      tdListFromJson(json['items'])
          .map((item) => PageBlockListItem.fromJson(tdMapFromJson(item)))
          .whereType<PageBlockListItem>(),
    ),
  );
}