19 lines
374 B
19 lines
374 B
class HotTopicModel {
|
|
int? id;
|
|
String? name;
|
|
|
|
HotTopicModel({this.id, this.name});
|
|
|
|
HotTopicModel.fromJson(Map<String, dynamic> json) {
|
|
id = json['id'];
|
|
name = json['name'];
|
|
}
|
|
|
|
Map<String, dynamic> toJson() {
|
|
final Map<String, dynamic> data = new Map<String, dynamic>();
|
|
data['id'] = this.id;
|
|
data['name'] = this.name;
|
|
return data;
|
|
}
|
|
}
|