Distribution_BucketOptions_Linear.fromJson constructor

Distribution_BucketOptions_Linear.fromJson(
  1. Object? j
)

Implementation

factory Distribution_BucketOptions_Linear.fromJson(Object? j) {
  final json = j as Map<String, Object?>;
  return Distribution_BucketOptions_Linear(
    numFiniteBuckets: switch (json['numFiniteBuckets']) {
      null => 0,
      Object $1 => decodeInt($1),
    },
    width: switch (json['width']) {
      null => 0,
      Object $1 => decodeDouble($1),
    },
    offset: switch (json['offset']) {
      null => 0,
      Object $1 => decodeDouble($1),
    },
  );
}