RelativeRotaryLastEvent.fromJson constructor
Creates a RelativeRotaryLastEvent object from the JSON response to a GET request.
Implementation
factory RelativeRotaryLastEvent.fromJson(Map<String, dynamic> dataMap) {
return RelativeRotaryLastEvent(
action: dataMap[ApiFields.action] ?? "",
rotation:
RelativeRotaryRotation.fromJson(dataMap[ApiFields.rotation] ?? {}));
}