deserialize method

SerializableFinder deserialize (Map<String, String> json)

Deserializes a finder from JSON generated by serialize.

Implementation

static SerializableFinder deserialize(Map<String, String> json) {
  final String finderType = json['finderType'];
  switch (finderType) {
    case 'ByType': return ByType.deserialize(json);
    case 'ByValueKey': return ByValueKey.deserialize(json);
    case 'ByTooltipMessage': return ByTooltipMessage.deserialize(json);
    case 'ByText': return ByText.deserialize(json);
    case 'PageBack': return PageBack();
  }
  throw DriverError('Unsupported search specification type $finderType');
}