InsightList.fromJson constructor

InsightList.fromJson(
  1. Map json_
)

Implementation

InsightList.fromJson(core.Map json_)
    : this(
        insights: json_.containsKey('insights')
            ? (json_['insights'] as core.List)
                .map((value) => Insight.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        updateTime: json_.containsKey('updateTime')
            ? json_['updateTime'] as core.String
            : null,
      );