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