AutomotiveCameraBehavior.fromJson constructor

AutomotiveCameraBehavior.fromJson(
  1. String configJson
)

Creates a new instance of this class configured from a JSON string.

The JSON configuration is validated during construction and applied to the underlying TrackingCameraBehavior and AreaCameraBehavior instances.

  • configJson A JSON string containing automotive camera configuration settings.

Throws InstantiationException. InstantiationException when the JSON is malformed or contains invalid values.

Implementation

factory AutomotiveCameraBehavior.fromJson(String configJson) => $prototype.fromJson(configJson);