ArOverlayFindAndPickConfiguration.fromJson constructor
ArOverlayFindAndPickConfiguration.fromJson(
- Map<String, dynamic> json
)
Implementation
factory ArOverlayFindAndPickConfiguration.fromJson(
Map<String, dynamic> json) =>
ArOverlayFindAndPickConfiguration(
visible:
json.containsKey("visible") ? (json["visible"] as bool) : false,
automaticSelectionEnabled: json.containsKey("automaticSelectionEnabled")
? (json["automaticSelectionEnabled"] as bool)
: true,
polygon: json.containsKey("polygon")
? FindAndPickArOverlayPolygonConfiguration.fromJson(
json["polygon"] as Map<String, dynamic>)
: FindAndPickArOverlayPolygonConfiguration(),
badge: json.containsKey("badge")
? FindAndPickBadgeConfiguration.fromJson(
json["badge"] as Map<String, dynamic>)
: FindAndPickBadgeConfiguration(),
);