Bucket.fromJson constructor

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

Implementation

factory Bucket.fromJson(Map<String, dynamic> json) {
  return Bucket(
    count: json['count'] as int?,
    value: json['value'] as String?,
  );
}