mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-07-29 06:50:12 +08:00
@@ -10,12 +10,12 @@ class Guard {
|
||||
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?,
|
||||
);
|
||||
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