parseStComponentIr function

STComponentIr parseStComponentIr(
  1. Object? raw,
  2. String path
)

Implementation

STComponentIr parseStComponentIr(Object? raw, String path) {
  final map = _map(raw, path);
  return STComponentIr(
    fill:
        map['fill'] == null ? null : parseStColorIr(map['fill'], '$path.fill'),
    foreground:
        map['foreground'] == null
            ? null
            : parseStColorIr(map['foreground'], '$path.foreground'),
    border:
        map['border'] == null
            ? null
            : parseStColorIr(map['border'], '$path.border'),
    elevation: _double(map['elevation'], '$path.elevation'),
    radius: _double(map['radius'], '$path.radius'),
    filled: map['filled'] as bool?,
  );
}