Model constructor

Model({
  1. List<Object> entities = const [],
  2. Object asset,
  3. Object segment,
  4. List<AttributeDefinitionEntity> attributeDefinitions = const [],
  5. List<Object> spaces = const [],
  6. List<Object> components = const [],
  7. List<Object> componentTypes = const [],
  8. List<Object> levels = const [],
  9. List<Object> zones = const [],
  10. List<Object> facilities = const [],
  11. List<Object> documents = const [],
  12. List<Object> contacts = const [],
  13. List<Object> sites = const [],
  14. List<Application> applications = const [],
  15. List<ModelMapping> forwardMappings = const [],
  16. List<ModelMapping> reverseMappings = const [],
  17. List<Role> roles = const [],
  18. UserPermissions permissions,
  19. ModelStateEnum state,
  20. int assetModelId,
  21. int assetId,
  22. String name,
  23. String revision,
  24. String status,
  25. bool isCurrent,
  26. String uploadedById,
  27. String segmentName,
  28. String segmentId,
  29. String assetName,
  30. String modelPath,
  31. int modelSize,
  32. double oneMeter,
  33. int originalAuthorId,
  34. DateTime dateUploaded,
  35. DateTime dateProcessed,
  36. int lastEntityId,
  37. String processingStage,
  38. String processingStatus,
})

Returns a new Model instance.

Implementation

Model({
  this.entities = const [],
  this.asset,
  this.segment,
  this.attributeDefinitions = const [],
  this.spaces = const [],
  this.components = const [],
  this.componentTypes = const [],
  this.levels = const [],
  this.zones = const [],
  this.facilities = const [],
  this.documents = const [],
  this.contacts = const [],
  this.sites = const [],
  this.applications = const [],
  this.forwardMappings = const [],
  this.reverseMappings = const [],
  this.roles = const [],
  this.permissions,
  this.state,
  this.assetModelId,
  this.assetId,
  this.name,
  this.revision,
  this.status,
  this.isCurrent,
  this.uploadedById,
  this.segmentName,
  this.segmentId,
  this.assetName,
  this.modelPath,
  this.modelSize,
  this.oneMeter,
  this.originalAuthorId,
  this.dateUploaded,
  this.dateProcessed,
  this.lastEntityId,
  this.processingStage,
  this.processingStatus,
});