ListItem.fromJson constructor

ListItem.fromJson(
  1. Map json_
)

Implementation

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