WebDriverValue.fromJson constructor

WebDriverValue.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory WebDriverValue.fromJson(Map<String, dynamic> json) {
  return WebDriverValue(
    type: WebDriverValueType.fromJson(json['type'] as String),
    value: json.containsKey('value') ? json['value'] as dynamic : null,
    objectId:
        json.containsKey('objectId') ? json['objectId'] as String : null,
  );
}