parseStTextTokenIr function
Implementation
STTextTokenIr parseStTextTokenIr(Object? raw, String path) {
final map = _map(raw, path);
return STTextTokenIr(
fontSize: _double(map['fontSize'], '$path.fontSize'),
fontWeight: parseStFontWeightValue(map['fontWeight'], '$path.fontWeight'),
fontStyle: parseStFontStyleName(map['fontStyle'], '$path.fontStyle'),
height: _double(map['height'], '$path.height'),
letterSpacing: _double(map['letterSpacing'], '$path.letterSpacing'),
color:
map['color'] == null
? null
: parseStColorIr(map['color'], '$path.color'),
colorName: map['colorName'] as String?,
);
}