ReorderPagesScreenConfiguration.fromJson constructor
ReorderPagesScreenConfiguration.fromJson(
- Map<String, dynamic> json
)
Implementation
factory ReorderPagesScreenConfiguration.fromJson(Map<String, dynamic> json) =>
ReorderPagesScreenConfiguration(
topBarBackButton: json.containsKey("topBarBackButton")
? ButtonConfiguration.fromJson(
json["topBarBackButton"] as Map<String, dynamic>)
: ButtonConfiguration(
visible: true,
text: "?reorderTopBarCancelButtonTitle",
accessibilityDescription:
"?accessibilityDescriptionReorderTopBarCancelButton",
background: BackgroundStyle(
strokeColor: ScanbotColor("#00000000"),
fillColor: ScanbotColor("#00000000"),
strokeWidth: 0.0),
foreground: ForegroundStyle(
iconVisible: true,
color: ScanbotColor("?sbColorOnPrimary"),
useShadow: false)),
topBarTitle: json.containsKey("topBarTitle")
? StyledText.fromJson(json["topBarTitle"] as Map<String, dynamic>)
: StyledText(
text: "?reorderPageTitle",
color: ScanbotColor("?sbColorOnPrimary")),
topBarConfirmButton: json.containsKey("topBarConfirmButton")
? ButtonConfiguration.fromJson(
json["topBarConfirmButton"] as Map<String, dynamic>)
: ButtonConfiguration(
visible: true,
text: "?reorderTopBarConfirmButtonTitle",
accessibilityDescription:
"?accessibilityDescriptionReorderTopBarConfirmButton",
background: BackgroundStyle(
strokeColor: ScanbotColor("#00000000"),
fillColor: ScanbotColor("#00000000"),
strokeWidth: 0.0),
foreground: ForegroundStyle(
iconVisible: true,
color: ScanbotColor("?sbColorOnPrimary"),
useShadow: false)),
backgroundColor: json.containsKey("backgroundColor")
? ScanbotColor(json["backgroundColor"] as String)
: ScanbotColor("?sbColorOutline"),
guidance: json.containsKey("guidance")
? UserGuidanceConfiguration.fromJson(
json["guidance"] as Map<String, dynamic>)
: UserGuidanceConfiguration(
title: StyledText(
text: "?reorderPageGuidanceTitle",
color: ScanbotColor("?sbColorOnPrimary")),
background: BackgroundStyle(
strokeColor: ScanbotColor("#00000000"),
fillColor: ScanbotColor("?sbColorSurfaceLow"),
strokeWidth: 0.0)),
pageTextStyle: json.containsKey("pageTextStyle")
? StyledText.fromJson(json["pageTextStyle"] as Map<String, dynamic>)
: StyledText(
text: "?reorderPageText",
color: ScanbotColor("?sbColorOnSurface")),
);