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