Catalog class

A Catalog object contains an array of Magic datapoints (words, card values, etc).

Catalog objects are provided by the API as aids for building other Magic software and understanding possible values for a field on Card objects.

Annotations
  • @JsonSerializable()

Constructors

Catalog({Uri? uri, required List<String> data})
Constructs a Catalog by settings its properties.
const
Catalog.fromJson(Map<String, dynamic> json)
Constructs a Catalog from JSON.
factory

Properties

data List<String>
An array of datapoints.
final
hashCode int
The hash code for this object.
no setterinherited
length int
The number of elements in this Catalog.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
uri Uri?
A link to the current catalog on Scryfall’s API.
final

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
operator [](int index) String
Returns the index element.