BucketOptions.fromJson constructor

BucketOptions.fromJson(
  1. Map json_
)

Implementation

BucketOptions.fromJson(core.Map json_)
    : this(
        explicitBuckets: json_.containsKey('explicitBuckets')
            ? Explicit.fromJson(json_['explicitBuckets']
                as core.Map<core.String, core.dynamic>)
            : null,
        exponentialBuckets: json_.containsKey('exponentialBuckets')
            ? Exponential.fromJson(json_['exponentialBuckets']
                as core.Map<core.String, core.dynamic>)
            : null,
        linearBuckets: json_.containsKey('linearBuckets')
            ? Linear.fromJson(
                json_['linearBuckets'] as core.Map<core.String, core.dynamic>)
            : null,
      );