Distribution.fromJson constructor

Distribution.fromJson(
  1. Map _json
)

Implementation

Distribution.fromJson(core.Map _json)
    : this(
        marketShare: _json.containsKey('marketShare')
            ? (_json['marketShare'] as core.num).toDouble()
            : null,
        measurementTime: _json.containsKey('measurementTime')
            ? _json['measurementTime'] as core.String
            : null,
      );