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