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
24 lines
562 B
Dart
24 lines
562 B
Dart
import 'package:json_annotation/json_annotation.dart';
|
|
|
|
import 'general_spec.dart';
|
|
import 'layer_config.dart';
|
|
import 'resource.dart';
|
|
|
|
part 'layer.g.dart';
|
|
|
|
@JsonSerializable()
|
|
class Layer {
|
|
bool? visible;
|
|
@JsonKey(name: 'general_spec')
|
|
GeneralSpec? generalSpec;
|
|
@JsonKey(name: 'layer_config')
|
|
LayerConfig? layerConfig;
|
|
Resource? resource;
|
|
|
|
Layer({this.visible, this.generalSpec, this.layerConfig, this.resource});
|
|
|
|
factory Layer.fromJson(Map<String, dynamic> json) => _$LayerFromJson(json);
|
|
|
|
Map<String, dynamic> toJson() => _$LayerToJson(this);
|
|
}
|