mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-19 16:46:22 +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:
18
lib/models/space/attention_tip.dart
Normal file
18
lib/models/space/attention_tip.dart
Normal file
@@ -0,0 +1,18 @@
|
||||
import 'package:json_annotation/json_annotation.dart';
|
||||
|
||||
part 'attention_tip.g.dart';
|
||||
|
||||
@JsonSerializable()
|
||||
class AttentionTip {
|
||||
@JsonKey(name: 'card_num')
|
||||
int? cardNum;
|
||||
String? tip;
|
||||
|
||||
AttentionTip({this.cardNum, this.tip});
|
||||
|
||||
factory AttentionTip.fromJson(Map<String, dynamic> json) {
|
||||
return _$AttentionTipFromJson(json);
|
||||
}
|
||||
|
||||
Map<String, dynamic> toJson() => _$AttentionTipToJson(this);
|
||||
}
|
||||
Reference in New Issue
Block a user