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