deserialize static method

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

Deserializes the finder from JSON generated by serialize.

Implementation

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