mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-07-18 09:36:52 +08:00
21
lib/models_new/space/space/guard.dart
Normal file
21
lib/models_new/space/space/guard.dart
Normal file
@@ -0,0 +1,21 @@
|
||||
import 'package:PiliPlus/models_new/space/space/item.dart';
|
||||
|
||||
class Guard {
|
||||
String? uri;
|
||||
String? desc;
|
||||
String? highLight;
|
||||
List<Item>? item;
|
||||
String? buttonMsg;
|
||||
|
||||
Guard({this.uri, this.desc, this.highLight, this.item, this.buttonMsg});
|
||||
|
||||
factory Guard.fromJson(Map<String, dynamic> json) => Guard(
|
||||
uri: json['uri'] as String?,
|
||||
desc: json['desc'] as String?,
|
||||
highLight: json['high_light'] as String?,
|
||||
item: (json['item'] as List<dynamic>?)
|
||||
?.map((e) => Item.fromJson(e as Map<String, dynamic>))
|
||||
.toList(),
|
||||
buttonMsg: json['button_msg'] as String?,
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user