Elements.fromJson constructor

Elements.fromJson(
  1. Map json_
)

Implementation

Elements.fromJson(core.Map json_)
  : this(
      citations: (json_['citations'] as core.List?)
          ?.map(
            (value) => Citation.fromJson(
              value as core.Map<core.String, core.dynamic>,
            ),
          )
          .toList(),
      citedSources: (json_['citedSources'] as core.List?)
          ?.map(
            (value) => CitedSource.fromJson(
              value as core.Map<core.String, core.dynamic>,
            ),
          )
          .toList(),
    );