Distribution_BucketOptions_Explicit.fromJson constructor

Distribution_BucketOptions_Explicit.fromJson(
  1. Object? j
)

Implementation

factory Distribution_BucketOptions_Explicit.fromJson(Object? j) {
  final json = j as Map<String, Object?>;
  return Distribution_BucketOptions_Explicit(
    bounds: switch (json['bounds']) {
      null => [],
      List<Object?> $1 => [for (final i in $1) decodeDouble(i)],
      _ => throw const FormatException('"bounds" is not a list'),
    },
  );
}