mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-06 09:13:48 +08:00
21 lines
453 B
Dart
21 lines
453 B
Dart
import 'tags.dart';
|
|
|
|
class LayerConfig {
|
|
bool? isCritical;
|
|
Tags? tags;
|
|
|
|
LayerConfig({this.isCritical, this.tags});
|
|
|
|
factory LayerConfig.fromJson(Map<String, dynamic> json) => LayerConfig(
|
|
isCritical: json['is_critical'] as bool?,
|
|
tags: json['tags'] == null
|
|
? null
|
|
: Tags.fromJson(json['tags'] as Map<String, dynamic>),
|
|
);
|
|
|
|
Map<String, dynamic> toJson() => {
|
|
'is_critical': isCritical,
|
|
'tags': tags?.toJson(),
|
|
};
|
|
}
|