asBelongsTo property

BelongsTo<T> asBelongsTo

Converts a DataModel<T> into a BelongsTo<T>.

Equivalent to using the constructor as BelongsTo(model).

Implementation

BelongsTo<T> get asBelongsTo => BelongsTo<T>(this as T);