FocalLengthInfo

Focal length information supported by the camera, including camera direction and focal length type.

@JsonSerializable(explicitToJson: true, includeIfNull: false)
class FocalLengthInfo {
  const FocalLengthInfo({this.cameraDirection, this.focalLengthType});

  @JsonKey(name: 'cameraDirection')
  final int? cameraDirection;

  @JsonKey(name: 'focalLengthType')
  final CameraFocalLengthType? focalLengthType;

  factory FocalLengthInfo.fromJson(Map<String, dynamic> json) =>
      _$FocalLengthInfoFromJson(json);

  Map<String, dynamic> toJson() => _$FocalLengthInfoToJson(this);
}
Note: (Android and iOS only)

Properties

cameraDirection
Camera direction. See CameraDirection.
focalLengthType
Focal length type. See CameraFocalLengthType.