feat: member shop

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-08-31 12:51:58 +08:00
parent 86346d568e
commit 2956b43f42
25 changed files with 734 additions and 10 deletions

View File

@@ -0,0 +1,30 @@
import 'package:PiliPlus/models_new/space/space_shop/item.dart';
class SpaceShopData {
List<SpaceShopItem>? data;
bool? showMoreTab;
String? clickUrl;
String? showMoreDesc;
bool? haveNextPage;
int? nextSearchAfter;
SpaceShopData({
this.data,
this.showMoreTab,
this.clickUrl,
this.showMoreDesc,
this.haveNextPage,
this.nextSearchAfter,
});
factory SpaceShopData.fromJson(Map<String, dynamic> json) => SpaceShopData(
data: (json['data'] as List<dynamic>?)
?.map((e) => SpaceShopItem.fromJson(e as Map<String, dynamic>))
.toList(),
showMoreTab: json['showMoreTab'] as bool?,
clickUrl: json['clickUrl'] as String?,
showMoreDesc: json['showMoreDesc'] as String?,
haveNextPage: json['haveNextPage'] as bool?,
nextSearchAfter: json['nextSearchAfter'] as int?,
);
}