MultiSelectOption class

A representation of a multi select option property for any Notion object.

Constructors

MultiSelectOption({required String name, String? id, ColorsTypes color = ColorsTypes.Default})
Main multi select option property constructor.
MultiSelectOption.fromJson(Map<String, dynamic> json)
Create a new multi select instance from json.

Properties

color ColorsTypes
The option color.
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
id String?
The option id.
getter/setter pair
name String
The option name.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Convert this to a valid json representation for the Notion API.
toString() String
A string representation of this object.
inherited

Operators

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

Static Methods

fromListJson(List options) List<MultiSelectOption>
Map a list of options from a json list with dynamics.