mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-06 09:13:48 +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/resource.dart
Normal file
21
lib/models/space/resource.dart
Normal file
@@ -0,0 +1,21 @@
|
||||
import 'package:json_annotation/json_annotation.dart';
|
||||
|
||||
import 'res_native_draw.dart';
|
||||
|
||||
part 'resource.g.dart';
|
||||
|
||||
@JsonSerializable()
|
||||
class Resource {
|
||||
@JsonKey(name: 'res_type')
|
||||
int? resType;
|
||||
@JsonKey(name: 'res_native_draw')
|
||||
ResNativeDraw? resNativeDraw;
|
||||
|
||||
Resource({this.resType, this.resNativeDraw});
|
||||
|
||||
factory Resource.fromJson(Map<String, dynamic> json) {
|
||||
return _$ResourceFromJson(json);
|
||||
}
|
||||
|
||||
Map<String, dynamic> toJson() => _$ResourceToJson(this);
|
||||
}
|
||||
Reference in New Issue
Block a user