DeviceOrientationChangedEvent.fromJson constructor

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

Converts the supplied Map to an instance of the DeviceOrientationChangedEvent class.

Implementation

DeviceOrientationChangedEvent.fromJson(Map<String, dynamic> json)
    : orientation =
          deserializeDeviceOrientation(json['orientation']! as String);