deserialize static method

BySemanticsLabel deserialize(
  1. Map<String, String> json, {
  2. String? path,
})

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);
}