ActionBarConfiguration.fromJson constructor
ActionBarConfiguration.fromJson(
- Map<String, dynamic> json
)
Implementation
factory ActionBarConfiguration.fromJson(Map<String, dynamic> json) =>
ActionBarConfiguration(
flashButton: json.containsKey("flashButton")
? RoundButton.fromJson(json["flashButton"] as Map<String, dynamic>)
: RoundButton(
visible: true,
backgroundColor: ScanbotColor("?sbColorSurfaceHigh"),
foregroundColor: ScanbotColor("?sbColorOnPrimary"),
activeBackgroundColor: ScanbotColor("?sbColorWarning"),
activeForegroundColor: ScanbotColor("#1C1B1F")),
zoomButton: json.containsKey("zoomButton")
? RoundButton.fromJson(json["zoomButton"] as Map<String, dynamic>)
: RoundButton(
visible: true,
backgroundColor: ScanbotColor("?sbColorSurfaceHigh"),
foregroundColor: ScanbotColor("?sbColorOnPrimary"),
activeBackgroundColor: ScanbotColor("?sbColorSurfaceHigh"),
activeForegroundColor: ScanbotColor("?sbColorOnPrimary")),
flipCameraButton: json.containsKey("flipCameraButton")
? RoundButton.fromJson(
json["flipCameraButton"] as Map<String, dynamic>)
: RoundButton(
visible: true,
backgroundColor: ScanbotColor("?sbColorSurfaceHigh"),
foregroundColor: ScanbotColor("?sbColorOnPrimary"),
activeBackgroundColor: ScanbotColor("?sbColorSurfaceHigh"),
activeForegroundColor: ScanbotColor("?sbColorOnPrimary")),
);