mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-06 09:13:48 +08:00
* refactor: member page * wip * wip * wip * wip * wip * wip * wip * wip * wip * wip * wip
22 lines
465 B
Dart
22 lines
465 B
Dart
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);
|
|
}
|