Distribution_BucketOptions.fromJson constructor
Distribution_BucketOptions.fromJson(
- Object? j
Implementation
factory Distribution_BucketOptions.fromJson(Object? j) {
final json = j as Map<String, Object?>;
return Distribution_BucketOptions(
linearBuckets: switch (json['linearBuckets']) {
null => null,
Object $1 => Distribution_BucketOptions_Linear.fromJson($1),
},
exponentialBuckets: switch (json['exponentialBuckets']) {
null => null,
Object $1 => Distribution_BucketOptions_Exponential.fromJson($1),
},
explicitBuckets: switch (json['explicitBuckets']) {
null => null,
Object $1 => Distribution_BucketOptions_Explicit.fromJson($1),
},
);
}