toJson method
Converts the DeviceOrientationChangedEvent instance into a Map instance that can be serialized to JSON.
Implementation
Map<String, dynamic> toJson() => <String, Object>{
'orientation': serializeDeviceOrientation(orientation),
};