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