mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-25 11:36:45 +08:00
88 lines
2.0 KiB
Dart
88 lines
2.0 KiB
Dart
class MatchTeam {
|
|
int? id;
|
|
String? title;
|
|
String? subTitle;
|
|
String? eTitle;
|
|
int? createTime;
|
|
String? area;
|
|
String? logo;
|
|
int? uid;
|
|
String? members;
|
|
String? dic;
|
|
int? isDeleted;
|
|
String? videoUrl;
|
|
String? profile;
|
|
int? leidaTid;
|
|
int? replyId;
|
|
int? teamType;
|
|
int? regionId;
|
|
String? divisionName;
|
|
String? divisionLogo;
|
|
|
|
MatchTeam({
|
|
this.id,
|
|
this.title,
|
|
this.subTitle,
|
|
this.eTitle,
|
|
this.createTime,
|
|
this.area,
|
|
this.logo,
|
|
this.uid,
|
|
this.members,
|
|
this.dic,
|
|
this.isDeleted,
|
|
this.videoUrl,
|
|
this.profile,
|
|
this.leidaTid,
|
|
this.replyId,
|
|
this.teamType,
|
|
this.regionId,
|
|
this.divisionName,
|
|
this.divisionLogo,
|
|
});
|
|
|
|
factory MatchTeam.fromJson(Map<String, dynamic> json) => MatchTeam(
|
|
id: json['id'] as int?,
|
|
title: json['title'] as String?,
|
|
subTitle: json['sub_title'] as String?,
|
|
eTitle: json['e_title'] as String?,
|
|
createTime: json['create_time'] as int?,
|
|
area: json['area'] as String?,
|
|
logo: json['logo'] as String?,
|
|
uid: json['uid'] as int?,
|
|
members: json['members'] as String?,
|
|
dic: json['dic'] as String?,
|
|
isDeleted: json['is_deleted'] as int?,
|
|
videoUrl: json['video_url'] as String?,
|
|
profile: json['profile'] as String?,
|
|
leidaTid: json['leida_tid'] as int?,
|
|
replyId: json['reply_id'] as int?,
|
|
teamType: json['team_type'] as int?,
|
|
regionId: json['region_id'] as int?,
|
|
divisionName: json['division_name'] as String?,
|
|
divisionLogo: json['division_logo'] as String?,
|
|
);
|
|
|
|
Map<String, dynamic> toJson() => {
|
|
'id': id,
|
|
'title': title,
|
|
'sub_title': subTitle,
|
|
'e_title': eTitle,
|
|
'create_time': createTime,
|
|
'area': area,
|
|
'logo': logo,
|
|
'uid': uid,
|
|
'members': members,
|
|
'dic': dic,
|
|
'is_deleted': isDeleted,
|
|
'video_url': videoUrl,
|
|
'profile': profile,
|
|
'leida_tid': leidaTid,
|
|
'reply_id': replyId,
|
|
'team_type': teamType,
|
|
'region_id': regionId,
|
|
'division_name': divisionName,
|
|
'division_logo': divisionLogo,
|
|
};
|
|
}
|