ListItem.fromJson constructor

ListItem.fromJson(
  1. Map json_
)

Implementation

ListItem.fromJson(core.Map json_)
  : this(
      checked: json_['checked'] as core.bool?,
      childListItems: (json_['childListItems'] as core.List?)
          ?.map(
            (value) => ListItem.fromJson(
              value as core.Map<core.String, core.dynamic>,
            ),
          )
          .toList(),
      text: json_.containsKey('text')
          ? TextContent.fromJson(
              json_['text'] as core.Map<core.String, core.dynamic>,
            )
          : null,
    );