# toEntity method Null safety

1. @override

DynamicWidgetEntity toEntity(

1. {String? appId}

)
override

## Implementation

    @override
    DynamicWidgetEntity toEntity({String? appId}) {
      return DynamicWidgetEntity(
        appId: appId,
        description: (description != null) ? description : null,
        content: (content != null) ? content : null,
        background:
            (background != null) ? background!.toEntity(appId: appId) : null,
        conditions:
            (conditions != null) ? conditions!.toEntity(appId: appId) : null,
      );
    }