Data.fromJson constructor

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

Implementation

Data.fromJson(Map<String, dynamic> json) {
  type = json['type'];
  header = json['header'];
  ctaText = json['ctaText'];
  cta = json['cta'];
  bgColor = json['bgColor'];
  gradient = json['gradient'];
  headerTy = json['headerTy'];
  footerTy = json['footerTy'];
  headerTextColor = json['headerTextColor'];
  ctaTextColor = json['ctaTextColor'];
  ctaColor = json['ctaColor'];
  gradientObj = json['gradientObj'] != null
      ? GradientColors.fromJson(json['gradientObj'])
      : null;
}