unReadCountResp.fromJson constructor
unReadCountResp.fromJson(
- Map<String, dynamic> json
)
Implementation
unReadCountResp.fromJson(Map<String, dynamic> json)
: public_cnts = json['returnCode'] == "0000" ? json['returnData']['public_cnts'] : 0,
private_cnts = json['returnCode'] == "0000" ? json['returnData']['private_cnts'] : 0,
total_cnts = json['returnCode'] == "0000" ? json['returnData']['total_cnts'] : 0,
rows = (json['returnCode'] != '0000') ? null : (json['returnData']['rows'] as List)
.map((json) => new unReadCountRows.fromJson(json))
.toList(),
super.fromJson(json);