TableOfContents.fromJson constructor

TableOfContents.fromJson(
  1. Map json_
)

Implementation

TableOfContents.fromJson(core.Map json_)
    : this(
        content: json_.containsKey('content')
            ? (json_['content'] as core.List)
                .map((value) => StructuralElement.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        suggestedDeletionIds: json_.containsKey('suggestedDeletionIds')
            ? (json_['suggestedDeletionIds'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        suggestedInsertionIds: json_.containsKey('suggestedInsertionIds')
            ? (json_['suggestedInsertionIds'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
      );