mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-17 23:56:13 +08:00
@@ -7,37 +7,37 @@ import 'purchase_button.dart';
|
||||
part 'images.g.dart';
|
||||
|
||||
@JsonSerializable()
|
||||
class Images {
|
||||
String? imgUrl;
|
||||
@JsonKey(name: 'night_imgurl')
|
||||
String? nightImgurl;
|
||||
@JsonKey(name: 'has_garb')
|
||||
bool? hasGarb;
|
||||
@JsonKey(name: 'goods_available')
|
||||
bool? goodsAvailable;
|
||||
@JsonKey(name: 'purchase_button')
|
||||
PurchaseButton? purchaseButton;
|
||||
@JsonKey(name: 'entrance_button')
|
||||
EntranceButton? entranceButton;
|
||||
@JsonKey(name: 'digital_info')
|
||||
DigitalInfo? digitalInfo;
|
||||
@JsonKey(name: 'collection_top_simple')
|
||||
dynamic collectionTopSimple;
|
||||
class SpaceImages {
|
||||
String? imgUrl;
|
||||
@JsonKey(name: 'night_imgurl')
|
||||
String? nightImgurl;
|
||||
@JsonKey(name: 'has_garb')
|
||||
bool? hasGarb;
|
||||
@JsonKey(name: 'goods_available')
|
||||
bool? goodsAvailable;
|
||||
@JsonKey(name: 'purchase_button')
|
||||
PurchaseButton? purchaseButton;
|
||||
@JsonKey(name: 'entrance_button')
|
||||
EntranceButton? entranceButton;
|
||||
@JsonKey(name: 'digital_info')
|
||||
DigitalInfo? digitalInfo;
|
||||
@JsonKey(name: 'collection_top_simple')
|
||||
dynamic collectionTopSimple;
|
||||
|
||||
Images({
|
||||
this.imgUrl,
|
||||
this.nightImgurl,
|
||||
this.hasGarb,
|
||||
this.goodsAvailable,
|
||||
this.purchaseButton,
|
||||
this.entranceButton,
|
||||
this.digitalInfo,
|
||||
this.collectionTopSimple,
|
||||
});
|
||||
SpaceImages({
|
||||
this.imgUrl,
|
||||
this.nightImgurl,
|
||||
this.hasGarb,
|
||||
this.goodsAvailable,
|
||||
this.purchaseButton,
|
||||
this.entranceButton,
|
||||
this.digitalInfo,
|
||||
this.collectionTopSimple,
|
||||
});
|
||||
|
||||
factory Images.fromJson(Map<String, dynamic> json) {
|
||||
return _$ImagesFromJson(json);
|
||||
}
|
||||
factory SpaceImages.fromJson(Map<String, dynamic> json) {
|
||||
return _$ImagesFromJson(json);
|
||||
}
|
||||
|
||||
Map<String, dynamic> toJson() => _$ImagesToJson(this);
|
||||
Map<String, dynamic> toJson() => _$ImagesToJson(this);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user