IntroListEntry.fromJson constructor

IntroListEntry.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory IntroListEntry.fromJson(Map<String, dynamic> json) => IntroListEntry(
      image: json.containsKey("image")
          ? IntroImage.fromJson(json["image"] as Map<String, dynamic>)
          : NoIntroImage(),
      text: json.containsKey("text")
          ? StyledText.fromJson(json["text"] as Map<String, dynamic>)
          : StyledText(
              text: "?cameraIntroDescription",
              color: ScanbotColor("?sbColorOnSurface")),
    );