fromJson static method

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

Implementation

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

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