nativeTemplateStyleFromJson function
NativeTemplateStyle
nativeTemplateStyleFromJson(
- ThemeData theme,
- Map<String, dynamic> json
)
Implementation
NativeTemplateStyle nativeTemplateStyleFromJson(
ThemeData theme, Map<String, dynamic> json) {
return NativeTemplateStyle(
templateType:
parseTemplateType(json["template_type"], TemplateType.medium)!,
mainBackgroundColor: parseColor(theme, "main_bgcolor"),
cornerRadius: parseDouble(json["corner_radius"]),
callToActionTextStyle:
nativeTextStyleFromJson(theme, json["call_to_action_text_style"]),
primaryTextStyle:
nativeTextStyleFromJson(theme, json["primary_text_style"]),
secondaryTextStyle:
nativeTextStyleFromJson(theme, json["secondary_text_style"]),
tertiaryTextStyle:
nativeTextStyleFromJson(theme, json["tertiary_text_style"]));
}