INNER CODE UNIT · Dart

CelebrityWorkEntity

kaina404/FlutterDouBan · lib/bean/celebrity_work_entity.dart:1

class CelebrityWorkEntity {
	CelebrityWorkCelebrity celebrity;
	int total;
	List<CelebrityWorkWork> works;
	int count;
	int start;

	CelebrityWorkEntity({this.celebrity, this.total, this.works, this.count, this.start});

	CelebrityWorkEntity.fromJson(Map<String, dynamic> json) {
		celebrity = json['celebrity'] != null ? new CelebrityWorkCelebrity.fromJson(json['celebrity']) : null;
		total = json['total'];
		if (json['works'] != null) {
			works = new List<CelebrityWorkWork>();
			json['works'].forEach((v) { works.add(new CelebrityWorkWork.fromJson(v)); });
		}
		count = json['count'];
		start = json['start'];

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…