mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-20 00:56:31 +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:
47
lib/models/space/digital_info.dart
Normal file
47
lib/models/space/digital_info.dart
Normal file
@@ -0,0 +1,47 @@
|
||||
import 'package:json_annotation/json_annotation.dart';
|
||||
|
||||
part 'digital_info.g.dart';
|
||||
|
||||
@JsonSerializable()
|
||||
class DigitalInfo {
|
||||
bool? active;
|
||||
@JsonKey(name: 'nft_type')
|
||||
int? nftType;
|
||||
@JsonKey(name: 'background_handle')
|
||||
int? backgroundHandle;
|
||||
@JsonKey(name: 'animation_first_frame')
|
||||
String? animationFirstFrame;
|
||||
@JsonKey(name: 'music_album')
|
||||
dynamic musicAlbum;
|
||||
dynamic animation;
|
||||
@JsonKey(name: 'nft_region_title')
|
||||
String? nftRegionTitle;
|
||||
@JsonKey(name: 'card_id')
|
||||
int? cardId;
|
||||
@JsonKey(name: 'cut_space_bg')
|
||||
String? cutSpaceBg;
|
||||
@JsonKey(name: 'part_type')
|
||||
int? partType;
|
||||
@JsonKey(name: 'item_jump_url')
|
||||
String? itemJumpUrl;
|
||||
|
||||
DigitalInfo({
|
||||
this.active,
|
||||
this.nftType,
|
||||
this.backgroundHandle,
|
||||
this.animationFirstFrame,
|
||||
this.musicAlbum,
|
||||
this.animation,
|
||||
this.nftRegionTitle,
|
||||
this.cardId,
|
||||
this.cutSpaceBg,
|
||||
this.partType,
|
||||
this.itemJumpUrl,
|
||||
});
|
||||
|
||||
factory DigitalInfo.fromJson(Map<String, dynamic> json) {
|
||||
return _$DigitalInfoFromJson(json);
|
||||
}
|
||||
|
||||
Map<String, dynamic> toJson() => _$DigitalInfoToJson(this);
|
||||
}
|
||||
Reference in New Issue
Block a user