core.Map<core.String, core.dynamic> toJson() => { if (position != null) 'position': position!, if (slicerId != null) 'slicerId': slicerId!, if (spec != null) 'spec': spec!, };