loadRelated<T> method
Implementation
Future<T> loadRelated<T>(
{required String entityName,
required String entityId,
required String fieldName,
required String relatedType,
String? queryName,
bool? isNullable,
bool isJoinType = false,
Map<String, Object?>? fixedWhere}) async {
isNullable ??= "$T".endsWith("?");
final raw = await this.loadRelatedJson(
entityName: entityName,
entityId: entityId,
fieldName: fieldName,
relatedType: relatedType,
fixedWhere: fixedWhere,
queryName: queryName,
isNullable: isNullable,
isJoinType: isJoinType);
return this._serializer.read<T>(
raw,
typeName: relatedType,
isNullable: isNullable,
);
}