mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-04-28 22:35:54 +08:00
22 lines
599 B
Dart
22 lines
599 B
Dart
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?,
|
|
);
|
|
}
|