Model constructor

const Model({
  1. required int id,
  2. required String name,
  3. String? description,
  4. required ModelType type,
  5. required bool nsfw,
  6. required bool poi,
  7. String? mode,
  8. CreatorInfo? creator,
  9. required List<String> tags,
  10. required List<ModelVersion> modelVersions,
  11. ModelStats? stats,
  12. String? imageUrl,
  13. DateTime? createdAt,
  14. DateTime? updatedAt,
  15. DateTime? publishedAt,
  16. ModelStatus? status,
  17. bool? earlyAccessEnabled,
  18. String? downloadUrl,
})

Creates a new model instance.

Implementation

const Model({
  required this.id,
  required this.name,
  this.description,
  required this.type,
  required this.nsfw,
  required this.poi,
  this.mode,
  this.creator,
  required this.tags,
  required this.modelVersions,
  this.stats,
  this.imageUrl,
  this.createdAt,
  this.updatedAt,
  this.publishedAt,
  this.status,
  this.earlyAccessEnabled,
  this.downloadUrl,
});