Project class

Constructors

Project({required String id, required String name, String? slug, String customerName = '', String? image, String imageThumb = '', String imagePreview = '', String? website, String? description, bool? gallery, bool? translationsDe, bool? translationsEn, bool? translationsFr, bool? translationsIt, bool? backlinkUrls, List<ActiveOrder> orders = const [], Map<String, Object>? arbuttonConfig = const {}, required DateTime created, required DateTime modified})
Returns a new Project instance.

Properties

arbuttonConfig Map<String, Object>?
getter/setter pair
backlinkUrls bool?
Enable urls to the product on your site. Required when using standalone QR codes (e.g. Print).
getter/setter pair
created DateTime
getter/setter pair
customerName String
getter/setter pair
description String?
getter/setter pair
Activates a publicly available gallery with all project models in state READY or ONLINE.
getter/setter pair
hashCode int
The hash code for this object.
no setteroverride
id String
getter/setter pair
image String?
Image will be visible in gallery.
getter/setter pair
imagePreview String
getter/setter pair
imageThumb String
getter/setter pair
modified DateTime
getter/setter pair
name String
Name will be visible as title in gallery.
getter/setter pair
orders List<ActiveOrder>
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
slug String?
Will be part of asset urls. Cannot be changed once created.
getter/setter pair
translationsDe bool?
Please note: This property should have been non-nullable! Since the specification file does not include a default value (using the "default:" property), however, the generated source code must fall back to having a nullable type. Consider adding a "default:" property in the specification file to hide this note.
getter/setter pair
translationsEn bool?
Please note: This property should have been non-nullable! Since the specification file does not include a default value (using the "default:" property), however, the generated source code must fall back to having a nullable type. Consider adding a "default:" property in the specification file to hide this note.
getter/setter pair
translationsFr bool?
Please note: This property should have been non-nullable! Since the specification file does not include a default value (using the "default:" property), however, the generated source code must fall back to having a nullable type. Consider adding a "default:" property in the specification file to hide this note.
getter/setter pair
translationsIt bool?
Please note: This property should have been non-nullable! Since the specification file does not include a default value (using the "default:" property), however, the generated source code must fall back to having a nullable type. Consider adding a "default:" property in the specification file to hide this note.
getter/setter pair
website String?
getter/setter pair

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
override

Static Methods

fromJson(dynamic value) Project?
Returns a new Project instance and imports its values from value if it's a Map, null otherwise.
listFromJson(dynamic json, {bool growable = false}) List<Project>
mapFromJson(dynamic json) Map<String, Project>
mapListFromJson(dynamic json, {bool growable = false}) Map<String, List<Project>>

Constants

requiredKeys → const Set<String>
The list of required keys that must be present in a JSON.