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:
23
lib/models/space/layer_config.dart
Normal file
23
lib/models/space/layer_config.dart
Normal file
@@ -0,0 +1,23 @@
|
||||
import 'package:json_annotation/json_annotation.dart';
|
||||
|
||||
import 'tags.dart';
|
||||
|
||||
part 'layer_config.g.dart';
|
||||
|
||||
@JsonSerializable()
|
||||
class LayerConfig {
|
||||
// Tags? tags;
|
||||
@JsonKey(name: 'is_critical')
|
||||
bool? isCritical;
|
||||
|
||||
LayerConfig({
|
||||
// this.tags,
|
||||
this.isCritical,
|
||||
});
|
||||
|
||||
factory LayerConfig.fromJson(Map<String, dynamic> json) {
|
||||
return _$LayerConfigFromJson(json);
|
||||
}
|
||||
|
||||
Map<String, dynamic> toJson() => _$LayerConfigToJson(this);
|
||||
}
|
||||
Reference in New Issue
Block a user