nativeTextStyleFromJson function
Implementation
NativeTemplateTextStyle? nativeTextStyleFromJson(
ThemeData theme, Map<String, dynamic>? json) {
if (json == null) return null;
return NativeTemplateTextStyle(
size: parseDouble(json["size"]),
textColor: parseColor(theme, json["color"]),
backgroundColor: parseColor(theme, json["bgColor"]),
style: parseNativeTemplateFontStyle(json["style"]),
);
}