mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-05-29 20:48:40 +00:00
opt: member page
Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
@@ -1,17 +1,18 @@
|
||||
import 'package:PiliPlus/models/space/item.dart';
|
||||
import 'package:json_annotation/json_annotation.dart';
|
||||
|
||||
part 'coin_archive.g.dart';
|
||||
|
||||
@JsonSerializable()
|
||||
class CoinArchive {
|
||||
int? count;
|
||||
List<dynamic>? item;
|
||||
int? count;
|
||||
List<Item>? item;
|
||||
|
||||
CoinArchive({this.count, this.item});
|
||||
CoinArchive({this.count, this.item});
|
||||
|
||||
factory CoinArchive.fromJson(Map<String, dynamic> json) {
|
||||
return _$CoinArchiveFromJson(json);
|
||||
}
|
||||
factory CoinArchive.fromJson(Map<String, dynamic> json) {
|
||||
return _$CoinArchiveFromJson(json);
|
||||
}
|
||||
|
||||
Map<String, dynamic> toJson() => _$CoinArchiveToJson(this);
|
||||
Map<String, dynamic> toJson() => _$CoinArchiveToJson(this);
|
||||
}
|
||||
|
||||
@@ -8,7 +8,9 @@ part of 'coin_archive.dart';
|
||||
|
||||
CoinArchive _$CoinArchiveFromJson(Map<String, dynamic> json) => CoinArchive(
|
||||
count: (json['count'] as num?)?.toInt(),
|
||||
item: json['item'] as List<dynamic>?,
|
||||
item: (json['item'] as List<dynamic>?)
|
||||
?.map((json) => Item.fromJson(json))
|
||||
.toList(),
|
||||
);
|
||||
|
||||
Map<String, dynamic> _$CoinArchiveToJson(CoinArchive instance) =>
|
||||
|
||||
@@ -4,14 +4,14 @@ part 'favourite2.g.dart';
|
||||
|
||||
@JsonSerializable()
|
||||
class Favourite2 {
|
||||
int? count;
|
||||
List<dynamic>? item;
|
||||
int? count;
|
||||
List<dynamic>? item;
|
||||
|
||||
Favourite2({this.count, this.item});
|
||||
Favourite2({this.count, this.item});
|
||||
|
||||
factory Favourite2.fromJson(Map<String, dynamic> json) {
|
||||
return _$Favourite2FromJson(json);
|
||||
}
|
||||
factory Favourite2.fromJson(Map<String, dynamic> json) {
|
||||
return _$Favourite2FromJson(json);
|
||||
}
|
||||
|
||||
Map<String, dynamic> toJson() => _$Favourite2ToJson(this);
|
||||
Map<String, dynamic> toJson() => _$Favourite2ToJson(this);
|
||||
}
|
||||
|
||||
@@ -1,17 +1,18 @@
|
||||
import 'package:PiliPlus/models/space/item.dart';
|
||||
import 'package:json_annotation/json_annotation.dart';
|
||||
|
||||
part 'like_archive.g.dart';
|
||||
|
||||
@JsonSerializable()
|
||||
class LikeArchive {
|
||||
int? count;
|
||||
List<dynamic>? item;
|
||||
int? count;
|
||||
List<Item>? item;
|
||||
|
||||
LikeArchive({this.count, this.item});
|
||||
LikeArchive({this.count, this.item});
|
||||
|
||||
factory LikeArchive.fromJson(Map<String, dynamic> json) {
|
||||
return _$LikeArchiveFromJson(json);
|
||||
}
|
||||
factory LikeArchive.fromJson(Map<String, dynamic> json) {
|
||||
return _$LikeArchiveFromJson(json);
|
||||
}
|
||||
|
||||
Map<String, dynamic> toJson() => _$LikeArchiveToJson(this);
|
||||
Map<String, dynamic> toJson() => _$LikeArchiveToJson(this);
|
||||
}
|
||||
|
||||
@@ -8,7 +8,9 @@ part of 'like_archive.dart';
|
||||
|
||||
LikeArchive _$LikeArchiveFromJson(Map<String, dynamic> json) => LikeArchive(
|
||||
count: (json['count'] as num?)?.toInt(),
|
||||
item: json['item'] as List<dynamic>?,
|
||||
item: (json['item'] as List<dynamic>?)
|
||||
?.map((json) => Item.fromJson(json))
|
||||
.toList(),
|
||||
);
|
||||
|
||||
Map<String, dynamic> _$LikeArchiveToJson(LikeArchive instance) =>
|
||||
|
||||
Reference in New Issue
Block a user