1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071 |
- class Bbs {
- String rEQ;
- String rEQDT;
- String rESDT;
- int status;
- List<Result> result;
- Bbs({this.rEQ, this.rEQDT, this.rESDT, this.status, this.result});
- Bbs.fromJson(Map<String, dynamic> json) {
- rEQ = json['REQ'];
- rEQDT = json['REQ_DT'];
- rESDT = json['RES_DT'];
- status = json['status'];
- if (json['result'] != null) {
- result = new List<Result>();
- json['result'].forEach((v) {
- result.add(new Result.fromJson(v));
- });
- }
- }
- Map<String, dynamic> toJson() {
- final Map<String, dynamic> data = new Map<String, dynamic>();
- data['REQ'] = this.rEQ;
- data['REQ_DT'] = this.rEQDT;
- data['RES_DT'] = this.rESDT;
- data['status'] = this.status;
- if (this.result != null) {
- data['result'] = this.result.map((v) => v.toJson()).toList();
- }
- return data;
- }
- }
- class Result {
- String sId;
- String title;
- String type;
- String content;
- String notice;
- String createdAt;
- Result(
- {this.sId,
- this.title,
- this.type,
- this.content,
- this.notice,
- this.createdAt});
- Result.fromJson(Map<String, dynamic> json) {
- sId = json['_id'];
- title = json['title'];
- type = json['type'];
- content = json['content'];
- notice = json['notice'];
- createdAt = json['createdAt'];
- }
- Map<String, dynamic> toJson() {
- final Map<String, dynamic> data = new Map<String, dynamic>();
- data['_id'] = this.sId;
- data['title'] = this.title;
- data['type'] = this.type;
- data['content'] = this.content;
- data['notice'] = this.notice;
- data['createdAt'] = this.createdAt;
- return data;
- }
- }
|