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