maybeParse static method
Implementation
static TextStyleValue? maybeParse(dynamic value) {
if (value == null) return null;
final fontFamily = FontFamilyValue.maybeParse(value['fontFamily']);
final fontWeight = FontWeightValue.maybeParse(value['fontWeight']);
final sizeAndHeight = _FontSizeLineHeight(value);
final letterSpacing = LetterSpacingValue.maybeParse(value['letterSpacing']);
return TextStyleValue._(
fontFamily: fontFamily,
fontWeight: fontWeight,
lineHeight: sizeAndHeight.lineHeight,
fontSize: sizeAndHeight.fontSize,
letterSpacing: letterSpacing,
);
}