class UserScoreModelRows { String? opType; int? changeExp; String? logTime; UserScoreModelRows({ this.opType, this.changeExp, this.logTime, }); UserScoreModelRows.fromJson(Map json) { opType = json['opType']?.toString(); changeExp = json['changeExp']?.toInt(); logTime = json['logTime']?.toString(); } Map toJson() { final data = {}; data['opType'] = opType; data['changeExp'] = changeExp; data['logTime'] = logTime; return data; } } class UserScoreModel { List? rows; String? total; UserScoreModel({ this.rows, this.total, }); UserScoreModel.fromJson(Map json) { if (json['rows'] != null) { final v = json['rows']; final arr0 = []; v.forEach((v) { arr0.add(UserScoreModelRows.fromJson(v)); }); rows = arr0; } total = json['total']?.toString(); } Map toJson() { final data = {}; if (rows != null) { final v = rows; final arr0 = []; for (var v in v!) { arr0.add(v!.toJson()); } data['rows'] = arr0; } data['total'] = total; return data; } }