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