mapFromJson static method
Implementation
static Map<String, Bucket?> mapFromJson(dynamic json) {
final map = <String, Bucket?>{};
if (json is Map && json.isNotEmpty) {
json
.cast<String, dynamic>()
.forEach((key, dynamic value) => map[key] = Bucket.fromJson(value));
}
return map;
}