Section.fromJson constructor

Section.fromJson(
  1. Map json_
)

Implementation

Section.fromJson(core.Map json_)
    : this(
        header: json_.containsKey('header')
            ? json_['header'] as core.String
            : null,
        widgets: json_.containsKey('widgets')
            ? (json_['widgets'] as core.List)
                .map((value) => WidgetMarkup.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
      );