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