| 123456789101112131415161718192021222324 |
- import 'package:json_annotation/json_annotation.dart';
- import 'GameInfo.dart';
- part 'BindGameInfo.g.dart';
- @JsonSerializable()
- class BindGameInfo {
- BindGameInfo(this.id, this.gameId, this.userId, this.nickName,this.gameInfo);
- int id;
- int gameId;//游戏ID
- int userId;//用户ID
- String nickName;//用户昵称
- GameInfo gameInfo;//游戏信息
- factory BindGameInfo.fromJson(Map<String, dynamic> json) =>
- _$BindGameInfoFromJson(json);
- Map<String, dynamic> toJson() => _$BindGameInfoToJson(this);
- // 命名构造函数
- BindGameInfo.empty();
- @override
- String toString() {
- return _$BindGameInfoToJson(this).toString();
- }
- }
|