fromEntity static method
Implementation
static Future<BodyComponentModel?> fromEntity(
String documentID, BodyComponentEntity? entity) async {
if (entity == null) return null;
return BodyComponentModel(
documentID: documentID,
componentName: entity.componentName,
componentId: entity.componentId,
);
}