Distribution_BucketOptions.fromJson constructor

Distribution_BucketOptions.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory Distribution_BucketOptions.fromJson(Map<String, dynamic> json) {
  return Distribution_BucketOptions(
    linearBuckets: decode(
      json['linearBuckets'],
      Distribution_BucketOptions_Linear.fromJson,
    ),
    exponentialBuckets: decode(
      json['exponentialBuckets'],
      Distribution_BucketOptions_Exponential.fromJson,
    ),
    explicitBuckets: decode(
      json['explicitBuckets'],
      Distribution_BucketOptions_Explicit.fromJson,
    ),
  );
}