ExpressionReport.fromJson constructor

ExpressionReport.fromJson(
  1. Map json_
)

Implementation

ExpressionReport.fromJson(core.Map json_)
    : this(
        children: json_.containsKey('children')
            ? (json_['children'] as core.List)
                .map((value) => ExpressionReport.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        sourcePosition: json_.containsKey('sourcePosition')
            ? SourcePosition.fromJson(json_['sourcePosition']
                as core.Map<core.String, core.dynamic>)
            : null,
        values: json_.containsKey('values')
            ? (json_['values'] as core.List)
                .map((value) => ValueCount.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
      );