deserialize static method

BySemanticsLabel deserialize(
  1. Map<String, String> json
)

Deserializes the finder from JSON generated by serialize.

Implementation

static BySemanticsLabel deserialize(Map<String, String> json) {
  final bool isRegExp = json['isRegExp'] == 'true';
  return BySemanticsLabel(isRegExp ? RegExp(json['label']!) : json['label']!);
}