mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-23 10:36:24 +08:00
Refactor member page (#3)
* refactor: member page * wip * wip * wip * wip * wip * wip * wip * wip * wip * wip * wip
This commit is contained in:
20
lib/models/space/entrance.dart
Normal file
20
lib/models/space/entrance.dart
Normal file
@@ -0,0 +1,20 @@
|
||||
import 'package:json_annotation/json_annotation.dart';
|
||||
|
||||
part 'entrance.g.dart';
|
||||
|
||||
@JsonSerializable()
|
||||
class Entrance {
|
||||
String? icon;
|
||||
@JsonKey(name: 'jump_url')
|
||||
String? jumpUrl;
|
||||
@JsonKey(name: 'is_show_entrance')
|
||||
bool? isShowEntrance;
|
||||
|
||||
Entrance({this.icon, this.jumpUrl, this.isShowEntrance});
|
||||
|
||||
factory Entrance.fromJson(Map<String, dynamic> json) {
|
||||
return _$EntranceFromJson(json);
|
||||
}
|
||||
|
||||
Map<String, dynamic> toJson() => _$EntranceToJson(this);
|
||||
}
|
||||
Reference in New Issue
Block a user