Bucket.fromJson constructor

Bucket.fromJson(
  1. Map json_
)

Implementation

Bucket.fromJson(core.Map json_)
    : this(
        max: json_.containsKey('max') ? json_['max'] as core.int : null,
        min: json_.containsKey('min') ? json_['min'] as core.int : null,
        proportion: json_.containsKey('proportion')
            ? (json_['proportion'] as core.num).toDouble()
            : null,
      );