RelatedCard class
Cards that are closely related to other cards (because they call
them by name, or generate a token, or meld, etc) have a all_parts
property that contains Related Card objects.
- Annotations
-
- @JsonSerializable()
Constructors
- RelatedCard({required String id, required Component component, required String name, required String typeLine, required Uri uri})
-
Constructs a RelatedCard by setting its properties.
const
-
RelatedCard.fromJson(Map<
String, dynamic> json) -
Constructs a RelatedCard from JSON.
factory
Properties
- component → Component
-
A field explaining what role this card plays in this relationship.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- id → String
-
An unique ID for this card in Scryfall’s database.
final
- name → String
-
The name of this particular related card.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- typeLine → String
-
The type line of this card.
final
- uri → Uri
-
A URI where you can retrieve a full object describing this card
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