ListBlock.fromJson constructor

ListBlock.fromJson(
  1. Map<String, Object?> j
)

Implementation

factory ListBlock.fromJson(Map<String, Object?> j) => ListBlock(
  ((j['items'] as List?) ?? const [])
      .map((e) => e.toString())
      .toList(growable: false),
  ordered: j['ordered'] == true,
);