Organization class

Annotations
  • @freezed

Constructors

Organization.new({@JsonKey(name: 'name', required: true) required String name, @JsonKey(name: 'displayName', required: true) required String displayName, @JsonKey(name: 'color', required: true) required String color, @JsonKey(name: 'ssoUrl') String? ssoUrl, @JsonKey(name: 'customDomain') String? customDomain, @JsonKey(name: 'widget') AIOWidget? widget, @JsonKey(name: 'settings', required: true) required OrganizationSettings settings, @JsonKey(name: 'postCategories', required: true) required List<PostCategory> postCategories, @JsonKey(name: 'picture') String? picture})
const
factory
Organization.fromJson(Map<String, Object?> json)
factory

Properties

color String
Color hash code
no setterinherited
copyWith → $OrganizationCopyWith<Organization>
Create a copy of Organization with the given fields replaced by the non-null parameter values.
no setterinherited
customDomain String?
Custom domain
no setterinherited
displayName String
The display name of the organization
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
name String
The name of the organization
no setterinherited
picture String?
Picture url
no setterinherited
postCategories List<PostCategory>
The post categories of the organization
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
settings OrganizationSettings
The settings of the organization
no setterinherited
ssoUrl String?
SSO Url
no setterinherited
widget AIOWidget?
The widgets of the organization
no setterinherited

Methods

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

Operators

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