parseStTextTokenIr function

STTextTokenIr parseStTextTokenIr(
  1. Object? raw,
  2. String path
)

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