CustomSurveyTheme.fromMap constructor

CustomSurveyTheme.fromMap(
  1. Map<String, dynamic> json
)

Implementation

factory CustomSurveyTheme.fromMap(Map<String, dynamic> json) =>
    CustomSurveyTheme(
      question: json["question"] == null
          ? null
          : Question.fromMap(json["question"]),
      font: json["font"],
      bottomBar: json["bottomBar"] == null
          ? null
          : BottomBar.fromMap(json["bottomBar"]),
      rating: json["rating"] == null ? null : Rating.fromMap(json["rating"]),
      opinionScale: json["opinionScale"] == null
          ? null
          : OpinionScale.fromMap(json["opinionScale"]),
      phoneNumber: json["phoneNumber"] == null
          ? null
          : PhoneNumber.fromMap(json["phoneNumber"]),
      yesOrNo:
          json["yesOrNo"] == null ? null : YesOrNo.fromMap(json["yesOrNo"]),
      multipleChoice: json["multipleChoice"] == null
          ? null
          : MultipleChoice.fromMap(json["multipleChoice"]),
      email: json["email"] == null ? null : Email.fromMap(json["email"]),
      text: json["text"] == null ? null : SSTextInput.fromMap(json["text"]),
      skipButton: json["skipButton"] == null
          ? null
          : SkipButton.fromMap(json["skipButton"]),
      nextButton: json["nextButton"] == null
          ? null
          : NextButton.fromMap(json["nextButton"]),
      animationDirection: json["animationDirection"],
      logo: json["logo"] == null ? null : Logo.fromMap(json["logo"]),
      welcome: json["welcome"] == null
          ? null
          : WelcomePageTheme.fromMap(json["welcome"]),
      thankYouPage: json["thankYouPage"] == null
          ? null
          : ThankYouPageTheme.fromMap(json["thankYouPage"]),
    );