deserialize static method

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

Deserializes the finder from JSON generated by serialize.

Implementation

static ByText deserialize(Map<String, String> json, {String? path}) {
  final String? text = json['text'];
  if (text == null) {
    throw ArgumentError.notNull(path == null ? 'text' : '$path.text');
  }
  return ByText(text);
}