deserialize static method
Deserializes the finder from JSON generated by serialize.
Implementation
static BySemanticsLabel deserialize(Map<String, String> json, {String? path}) {
final String? label = json['label'];
if (label == null) {
throw ArgumentError.notNull(path == null ? 'label' : '$path.label');
}
final bool isRegExp = json['isRegExp'] == 'true';
return BySemanticsLabel(isRegExp ? RegExp(label) : label);
}