ShutterButton.fromJson constructor
ShutterButton.fromJson(
- Map<String, dynamic> json
)
Implementation
factory ShutterButton.fromJson(Map<String, dynamic> json) => ShutterButton(
enabledInAutoSnappingMode: json.containsKey("enabledInAutoSnappingMode")
? (json["enabledInAutoSnappingMode"] as bool)
: true,
accessibilityDescription: json.containsKey("accessibilityDescription")
? json["accessibilityDescription"] as String
: "?accessibilityDescriptionCameraShutterButton",
outerColor: json.containsKey("outerColor")
? ScanbotColor(json["outerColor"] as String)
: ScanbotColor("?sbColorOnPrimary"),
innerColor: json.containsKey("innerColor")
? ScanbotColor(json["innerColor"] as String)
: ScanbotColor("?sbColorOnPrimary"),
);