| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859 |
- class UserScoreModelRows {
- String? opType;
- int? changeExp;
- String? logTime;
- UserScoreModelRows({
- this.opType,
- this.changeExp,
- this.logTime,
- });
- UserScoreModelRows.fromJson(Map<String, dynamic> json) {
- opType = json['opType']?.toString();
- changeExp = json['changeExp']?.toInt();
- logTime = json['logTime']?.toString();
- }
- Map<String, dynamic> toJson() {
- final data = <String, dynamic>{};
- data['opType'] = opType;
- data['changeExp'] = changeExp;
- data['logTime'] = logTime;
- return data;
- }
- }
- class UserScoreModel {
- List<UserScoreModelRows?>? rows;
- String? total;
- UserScoreModel({
- this.rows,
- this.total,
- });
- UserScoreModel.fromJson(Map<String, dynamic> json) {
- if (json['rows'] != null) {
- final v = json['rows'];
- final arr0 = <UserScoreModelRows>[];
- v.forEach((v) {
- arr0.add(UserScoreModelRows.fromJson(v));
- });
- rows = arr0;
- }
- total = json['total']?.toString();
- }
- Map<String, dynamic> toJson() {
- final data = <String, dynamic>{};
- 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;
- }
- }
|