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(
        ((json['items'] as List<dynamic>?) ?? <dynamic>[])
            .map((item) =>
                PageBlockListItem.fromJson(item as Map<String, dynamic>?))
            .toList()),
  );
}