typeToMap static method

Map<String, dynamic> typeToMap(
  1. WebDriverCommandType type
)

Util method for converting WebDriverCommandType to a map entry.

Used for converting messages to json format.

Implementation

static Map<String, dynamic> typeToMap(WebDriverCommandType type) => <String, dynamic>{
  'web_driver_command': '$type',
};