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