fromEntityPlus static method

Future<LabelledBodyComponentModel?> fromEntityPlus(
  1. String documentID,
  2. LabelledBodyComponentEntity? entity, {
  3. String? appId,
})

Implementation

static Future<LabelledBodyComponentModel?> fromEntityPlus(
    String documentID, LabelledBodyComponentEntity? entity,
    {String? appId}) async {
  if (entity == null) return null;

  return LabelledBodyComponentModel(
    documentID: documentID,
    label: entity.label,
    componentName: entity.componentName,
    componentId: entity.componentId,
  );
}