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