INNER CODE UNIT · Dart

CommentsEntity

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

class CommentsEntity {
	int total;
	List<CommantsBeanCommants> comments;
	int nextStart;
	CommentsBeanSubject subject;
	int count;
	int start;

	CommentsEntity({this.total, this.comments, this.nextStart, this.subject, this.count, this.start});

	CommentsEntity.fromJson(Map<String, dynamic> json) {
		total = json['total'];
		if (json['comments'] != null) {
			comments = new List<CommantsBeanCommants>();
			json['comments'].forEach((v) { comments.add(new CommantsBeanCommants.fromJson(v)); });
		}
		nextStart = json['next_start'];
		subject = json['subject'] != null ? new CommentsBeanSubject.fromJson(json['subject']) : null;

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…