CardList class

A list of cards returned by a POST /cards/collection request.

Annotations
  • @JsonSerializable()

Constructors

CardList({required List<CardIdentifier> notFound, required List<MtgCard> data})
Constructs a CardList by setting its properties.
const
CardList.fromJson(Map<String, dynamic> json)
Constructs a CardList from JSON.
factory

Properties

data List<MtgCard>
A List of MtgCards which could be uniquely identified by their CardIdentifiers.
final
hashCode int
The hash code for this object.
no setterinherited
length int
The number of objects in this list.
no setter
notFound List<CardIdentifier>
A List of CardIdentifiers which could not be found.
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
operator [](int index) MtgCard
Returns the index element.