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'] as core.Object
            : null,
        gauge:
            _json.containsKey('gauge') ? _json['gauge'] as core.Object : null,
        internal: _json.containsKey('internal')
            ? _json['internal'] as core.Object
            : null,
        kind: _json.containsKey('kind') ? _json['kind'] as core.String : null,
        meanCount: _json.containsKey('meanCount')
            ? _json['meanCount'] as core.Object
            : null,
        meanSum: _json.containsKey('meanSum')
            ? _json['meanSum'] as core.Object
            : null,
        name: _json.containsKey('name')
            ? MetricStructuredName.fromJson(
                _json['name'] as core.Map<core.String, core.dynamic>)
            : null,
        scalar: _json.containsKey('scalar')
            ? _json['scalar'] as core.Object
            : null,
        set: _json.containsKey('set') ? _json['set'] as core.Object : null,
        updateTime: _json.containsKey('updateTime')
            ? _json['updateTime'] as core.String
            : null,
      );