ScreenOrientation.fromJson constructor

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

Implementation

factory ScreenOrientation.fromJson(Map<String, dynamic> json) {
  return ScreenOrientation(
    type: ScreenOrientationType.fromJson(json['type'] as String),
    angle: json['angle'] as int,
  );
}