GamePadControllerEventData.parse constructor
GamePadControllerEventData.parse(
- Map map
Implementation
factory GamePadControllerEventData.parse(Map<dynamic, dynamic> map) {
final gamepadId = map['gamepadId'] as String;
final timestamp = map['time'] as int;
final type =
GamePadControllerEventKeyType.values.byName(map['type'] as String);
final key = map['key'] as String;
final value = map['value'] as double;
return GamePadControllerEventData(
gamepadId: gamepadId,
timestamp: timestamp,
type: type,
key: key,
value: value,
);
}