Cta.fromJson constructor

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

Implementation

factory Cta.fromJson(Map<String, dynamic> json) => Cta(
      buttonColor: json["buttonColor"],
      buttonWidth: json["buttonWidth"],
      buttonAlignment: json["buttonAlignment"],
      roundness: json["roundness"],
      padding: Padding.fromJson(json["padding"]),
      buttonText: json["buttonText"],
      url: json["url"],
    );