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