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