nativeTextStyleFromJson function

NativeTemplateTextStyle? nativeTextStyleFromJson(
  1. ThemeData theme,
  2. Map<String, dynamic>? json
)

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"]),
  );
}