factory ImageStats.fromJson(Map<String, dynamic> json) => _$ImageStatsFromJson(json[Params.count] ?? json);