You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

83 lines
1.9 KiB

class UserPropData {
int? current;
int? pages;
List<Records>? records;
int? size;
int? total;
UserPropData({this.current, this.pages, this.records, this.size, this.total});
UserPropData.fromJson(Map<String, dynamic> json) {
current = json['current'];
pages = json['pages'];
if (json['records'] != null) {
records = <Records>[];
json['records'].forEach((v) {
records!.add(new Records.fromJson(v));
});
}
size = json['size'];
total = json['total'];
}
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
data['current'] = this.current;
data['pages'] = this.pages;
if (this.records != null) {
data['records'] = this.records!.map((v) => v.toJson()).toList();
}
data['size'] = this.size;
data['total'] = this.total;
return data;
}
}
class Records {
bool? enable;
String? endTime;
int? id;
String? logoUrl;
String? name;
int? num;
String? startTime;
int? type;
int? userId;
Records(
{this.enable,
this.endTime,
this.id,
this.logoUrl,
this.name,
this.num,
this.startTime,
this.type,
this.userId});
Records.fromJson(Map<String, dynamic> json) {
enable = json['enable'];
endTime = json['endTime'];
id = json['id'];
logoUrl = json['logoUrl'];
name = json['name'];
num = json['num'];
startTime = json['startTime'];
type = json['type'];
userId = json['userId'];
}
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
data['enable'] = this.enable;
data['endTime'] = this.endTime;
data['id'] = this.id;
data['logoUrl'] = this.logoUrl;
data['name'] = this.name;
data['num'] = this.num;
data['startTime'] = this.startTime;
data['type'] = this.type;
data['userId'] = this.userId;
return data;
}
}