# toEntity method Null safety

1. @override

DividerEntity toEntity(

1. {String? appId}

)
override

## Implementation

    @override
    DividerEntity toEntity({String? appId}) {
      return DividerEntity(
        appId: appId,
        description: (description != null) ? description : null,
        color: (color != null) ? color!.toEntity(appId: appId) : null,
        height: (height != null) ? height : null,
        thickness: (thickness != null) ? thickness : null,
        indent: (indent != null) ? indent : null,
        endIndent: (endIndent != null) ? endIndent : null,
        conditions:
            (conditions != null) ? conditions!.toEntity(appId: appId) : null,
      );
    }