MtgCardFace.fromMap constructor
MtgCardFace.fromMap(
- Map m
Convert a map to an MtgCardFace instance. The intended use case is to store or request JSON data and convert that to a Dart Map, then pass that to this constructor.
Implementation
MtgCardFace.fromMap(Map m)
: artist = m['artist'],
flavorText = m['flavor_text'],
images = _images(m['image_uris']),
manaCost = m['mana_cost'],
manaValue = m['cmc'],
name = m['name'],
oracleText = m['oracle_text'],
power = m['power'],
toughness = m['toughness'],
typeLine = m['type_line'];