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,
      );