mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-06 09:13:48 +08:00
mod: tweaks opt: publish page Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
44 lines
1.1 KiB
Dart
44 lines
1.1 KiB
Dart
import 'package:json_annotation/json_annotation.dart';
|
|
|
|
import 'package:PiliPlus/models/space/digital_info.dart';
|
|
import 'package:PiliPlus/models/space/entrance_button.dart';
|
|
import 'package:PiliPlus/models/space/purchase_button.dart';
|
|
|
|
part 'images.g.dart';
|
|
|
|
@JsonSerializable()
|
|
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;
|
|
|
|
SpaceImages({
|
|
this.imgUrl,
|
|
this.nightImgurl,
|
|
this.hasGarb,
|
|
this.goodsAvailable,
|
|
this.purchaseButton,
|
|
this.entranceButton,
|
|
this.digitalInfo,
|
|
this.collectionTopSimple,
|
|
});
|
|
|
|
factory SpaceImages.fromJson(Map<String, dynamic> json) {
|
|
return _$ImagesFromJson(json);
|
|
}
|
|
|
|
Map<String, dynamic> toJson() => _$ImagesToJson(this);
|
|
}
|