CreateOrganizationRequest class

Constructors

CreateOrganizationRequest.new({required String name, String? createdBy, Map<String, Object>? privateMetadata = const {}, Map<String, Object>? publicMetadata = const {}, String? slug, int? maxAllowedMemberships, String? createdAt})
Returns a new CreateOrganizationRequest instance.

Properties

createdAt String?
A custom date/time denoting when the organization was created, specified in RFC3339 format (e.g. 2012-10-20T07:15:20.902Z).
getter/setter pair
createdBy String?
The ID of the User who will become the administrator for the new organization
getter/setter pair
hashCode int
The hash code for this object.
no setteroverride
maxAllowedMemberships int?
The maximum number of memberships allowed for this organization
getter/setter pair
name String
The name of the new organization. May not contain URLs or HTML. Max length: 256
getter/setter pair
privateMetadata Map<String, Object>?
Metadata saved on the organization, accessible only from the Backend API
getter/setter pair
publicMetadata Map<String, Object>?
Metadata saved on the organization, read-only from the Frontend API and fully accessible (read/write) from the Backend API
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
slug String?
A slug for the new organization. Can contain only lowercase alphanumeric characters and the dash "-". Must be unique for the instance.
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) CreateOrganizationRequest?
Returns a new CreateOrganizationRequest instance and imports its values from value if it's a Map, null otherwise.
listFromJson(dynamic json, {bool growable = false}) List<CreateOrganizationRequest>
mapFromJson(dynamic json) Map<String, CreateOrganizationRequest>
mapListFromJson(dynamic json, {bool growable = false}) Map<String, List<CreateOrganizationRequest>>

Constants

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