Skill class

Constructors

Skill({String? content, int? createdAt, String? description, String? id, String? name, String? org})
Returns a new Skill instance.

Properties

content ↔ String?
Content is the SKILL.md body, markdown.
getter/setter pair
createdAt ↔ int?
CreatedAt is when the skill was last written, Unix seconds.
getter/setter pair
description ↔ String?
Description is the one-line summary discovery shows for the skill.
getter/setter pair
hashCode → int
The hash code for this object.
no setteroverride
id ↔ String?
ID is the skill's id within the org. It is DERIVED from Name, so writing the same name again revises that skill rather than adding another.
getter/setter pair
name ↔ String?
Name is the skill's name: one lowercase path segment (a-z0-9, _ or -).
getter/setter pair
org ↔ String?
Org is the org that authored the skill — the validated caller's, never a value the body supplied.
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>
toString() → String
A string representation of this object.
override

Operators

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

Static Methods

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

Constants

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