fromJson static method
Implementation
static IrStroke? fromJson(Object? json) {
if (json == null) return null;
final m = json as Map<String, Object?>;
return IrStroke(
color: IrColor.fromJson(m['color']),
width: _d(m['width']) ?? 1,
);
}