mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-24 11:06:51 +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:
21
lib/models/space_fav/space_fav.dart
Normal file
21
lib/models/space_fav/space_fav.dart
Normal file
@@ -0,0 +1,21 @@
|
||||
import 'package:json_annotation/json_annotation.dart';
|
||||
|
||||
import 'datum.dart';
|
||||
|
||||
part 'space_fav.g.dart';
|
||||
|
||||
@JsonSerializable()
|
||||
class SpaceFav {
|
||||
int? code;
|
||||
String? message;
|
||||
int? ttl;
|
||||
List<Datum>? data;
|
||||
|
||||
SpaceFav({this.code, this.message, this.ttl, this.data});
|
||||
|
||||
factory SpaceFav.fromJson(Map<String, dynamic> json) {
|
||||
return _$SpaceFavFromJson(json);
|
||||
}
|
||||
|
||||
Map<String, dynamic> toJson() => _$SpaceFavToJson(this);
|
||||
}
|
||||
Reference in New Issue
Block a user