INNER CODE UNIT · Dart

Rating

kaina404/FlutterDouBan · lib/bean/celebrity_entity.dart:192

class Rating {

	int max;
	int min;
	var average;
	String stars;
	Detail details;

	Rating.fromParams({this.max, this.min, this.average, this.stars, this.details});

	Rating.fromJson(jsonRes) {
		max = jsonRes['max'];
		min = jsonRes['min'];
		average = jsonRes['average'];
		stars = jsonRes['stars'];
		details = jsonRes['details'] == null ? null : new Detail.fromJson(jsonRes['details']);
	}

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…