Resource class

Represents an API resource.

Create an API

Constructors

Resource({String? id, String? parentId, String? path, String? pathPart, Map<String, Method>? resourceMethods})
Resource.fromJson(Map<String, dynamic> json)
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
id String?
The resource's identifier.
final
parentId String?
The parent resource's identifier.
final
path String?
The full path for this resource.
final
pathPart String?
The last path segment for this resource.
final
resourceMethods Map<String, Method>?
Gets an API resource's method of a given HTTP verb.
final
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
toString() String
A string representation of this object.
inherited

Operators

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