mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-22 18:16:54 +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:
43
lib/models/space/images.dart
Normal file
43
lib/models/space/images.dart
Normal file
@@ -0,0 +1,43 @@
|
||||
import 'package:json_annotation/json_annotation.dart';
|
||||
|
||||
import 'digital_info.dart';
|
||||
import 'entrance_button.dart';
|
||||
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;
|
||||
|
||||
Images({
|
||||
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);
|
||||
}
|
||||
|
||||
Map<String, dynamic> toJson() => _$ImagesToJson(this);
|
||||
}
|
||||
Reference in New Issue
Block a user