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