20 lines
493 B
Dart
20 lines
493 B
Dart
import 'package:json_annotation/json_annotation.dart';
|
|
|
|
part 'home_ranking_bean.g.dart';
|
|
|
|
///
|
|
@JsonSerializable(explicitToJson: true)
|
|
class HomeRankingBean {
|
|
String? gameId;
|
|
String? gameName;
|
|
String? gameIconImage;
|
|
String? playtime;
|
|
|
|
|
|
HomeRankingBean(this.gameId, this.gameName, this.gameIconImage, this.playtime);
|
|
|
|
factory HomeRankingBean.fromJson(Map<String, dynamic> json) => _$HomeRankingBeanFromJson(json);
|
|
|
|
Map<String, dynamic> toJson() => _$HomeRankingBeanToJson(this);
|
|
}
|