{

    "message": "",

    "flag": "",

    "errorFlag": "",

    "temp": "",

    "temp1": "",

    "temp2": "",

    "count": "",

    "map": {

        "easyInfo": {

            "exp_amt": 10000,

            "exp_sum": 10000,

            "amt": 10000,

            "exp_dt": "20201215"

        }

    }




class PostData {

String message; String flag; String errorFlag; String temp; String temp1; String temp2; String count; Map map; PostData( {this.message, this.flag, this.errorFlag, this.temp, this.temp1, this.temp2, this.count, this.map}); PostData.fromJson(Map<String, dynamic> json) { message = json['message']; flag = json['flag']; errorFlag = json['errorFlag']; temp = json['temp']; temp1 = json['temp1']; temp2 = json['temp2']; count = json['count']; map = json['map'] != null ? new Map.fromJson(json['map']) : null; } Map<String, dynamic> toJson() { final Map<String, dynamic> data = new Map<String, dynamic>(); data['message'] = this.message; data['flag'] = this.flag; data['errorFlag'] = this.errorFlag; data['temp'] = this.temp; data['temp1'] = this.temp1; data['temp2'] = this.temp2; data['count'] = this.count; if (this.map != null) { data['map'] = this.map.toJson(); } return data; } } class Map { EasyInfo easyInfo; Map({this.easyInfo}); Map.fromJson(Map<String, dynamic> json) { easyInfo = json['easyInfo'] != null ? new EasyInfo.fromJson(json['easyInfo']) : null; } Map<String, dynamic> toJson() { final Map<String, dynamic> data = new Map<String, dynamic>(); if (this.easyInfo != null) { data['easyInfo'] = this.easyInfo.toJson(); } return data; } } class EasyInfo { int expAmt; int expSum; int amt; String expDt; EasyInfo({this.expAmt, this.expSum, this.amt, this.expDt}); EasyInfo.fromJson(Map<String, dynamic> json) { expAmt = json['exp_amt']; expSum = json['exp_sum']; amt = json['amt']; expDt = json['exp_dt']; } Map<String, dynamic> toJson() { final Map<String, dynamic> data = new Map<String, dynamic>(); data['exp_amt'] = this.expAmt; data['exp_sum'] = this.expSum; data['amt'] = this.amt; data['exp_dt'] = this.expDt; return data; } }

댓글

이 블로그의 인기 게시물

자바 string 비교 할때 equlas 를 사용하자

jqgrid 에서 export execl 붙이기

flutter webview scroll 안되는 경우 gestureRecognizers: gestureRecognizers, 추가 해서 되었다