mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-06 09:13:48 +08:00
* refactor: member page * wip * wip * wip * wip * wip * wip * wip * wip * wip * wip * wip
48 lines
1.0 KiB
Dart
48 lines
1.0 KiB
Dart
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);
|
|
}
|