mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-08-05 10:10:14 +08:00
refa: article (#757)
Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
20
lib/models/dynamics/opus_detail/layer_config.dart
Normal file
20
lib/models/dynamics/opus_detail/layer_config.dart
Normal file
@@ -0,0 +1,20 @@
|
||||
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(),
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user