MetricUpdate.fromJson constructor

MetricUpdate.fromJson(
  1. Map _json
)

Implementation

MetricUpdate.fromJson(core.Map _json)
    : this(
        cumulative: _json.containsKey('cumulative')
            ? _json['cumulative'] as core.bool
            : null,
        distribution:
            _json.containsKey('distribution') ? _json['distribution'] : null,
        gauge: _json.containsKey('gauge') ? _json['gauge'] : null,
        internal: _json.containsKey('internal') ? _json['internal'] : null,
        kind: _json.containsKey('kind') ? _json['kind'] as core.String : null,
        meanCount: _json.containsKey('meanCount') ? _json['meanCount'] : null,
        meanSum: _json.containsKey('meanSum') ? _json['meanSum'] : null,
        name: _json.containsKey('name')
            ? MetricStructuredName.fromJson(
                _json['name'] as core.Map<core.String, core.dynamic>)
            : null,
        scalar: _json.containsKey('scalar') ? _json['scalar'] : null,
        set: _json.containsKey('set') ? _json['set'] : null,
        updateTime: _json.containsKey('updateTime')
            ? _json['updateTime'] as core.String
            : null,
      );