class Autogenerated { List records; Autogenerated({this.records}); Autogenerated.fromJson(Map json) { if (json['records'] != null) { records = new List(); json['records'].forEach((v) { records.add(new Records.fromJson(v)); }); } } Map toJson() { final Map data = new Map(); if (this.records != null) { data['records'] = this.records.map((v) => v.toJson()).toList(); } return data; } } class Records { String id; String userId; String content; int type; int viewFlag; int deviceModel; String createUserId; String createTime; Records( {this.id, this.userId, this.content, this.type, this.viewFlag, this.deviceModel, this.createUserId, this.createTime}); Records.fromJson(Map json) { id = json['id']; userId = json['userId']; content = json['content']; type = json['type']; viewFlag = json['viewFlag']; deviceModel = json['deviceModel']; createUserId = json['createUserId']; createTime = json['createTime']; } Map toJson() { final Map data = new Map(); data['id'] = this.id; data['userId'] = this.userId; data['content'] = this.content; data['type'] = this.type; data['viewFlag'] = this.viewFlag; data['deviceModel'] = this.deviceModel; data['createUserId'] = this.createUserId; data['createTime'] = this.createTime; return data; } }