'How to pass Json data from one dart file to another?

I am trying to pass JSON data from Scryfall from my results.dart to display on my wishlist.dart after clicking the shopping bag button. I have no clue how to go about it. I mainly just want to display the name of the card, and the price. If i could get some help in the next hour, that'd be great! Here is the code: RESULTS.DART:

import 'dart:async';
import 'package:demo_1/model/constant.dart';
import 'package:demo_1/viewscreen/wishlist_screen.dart';
import 'package:firebase_auth/firebase_auth.dart';
import 'package:url_launcher/url_launcher.dart';
import 'package:demo_1/model/scryfall_1.dart';
import 'package:demo_1/model/tokens.dart';
import 'package:flutter/material.dart';

class GetProjectScreen extends StatefulWidget {
  static const routeName = '/GetProjectScreen';
  const GetProjectScreen({required this.user, Key? key}) : super(key: key);
  final User user;

  @override
  State<StatefulWidget> createState() {
    return _GetProjectState();
  }
}
class _GetProjectState extends State<GetProjectScreen> {
  late _Controller con;
  @override
  void initState() {
    super.initState();
    con = _Controller(this);
  }
  void render(fn) => setState(fn);
  bool checked1 = true;
  @override
  Widget build(BuildContext context) {
    final searchCard = ModalRoute.of(context)!.settings.arguments as Future<Scryfall>;
    return MaterialApp(
      theme: ThemeData(
        primarySwatch: Colors.blue,
      ),
      home: Scaffold(
        appBar: AppBar(
          leading: BackButton(
            color: Colors.white,
            onPressed: () {
              curToken = '';
              Navigator.of(context).pop();
            },
          ),
          title: const Text('Showing Results For...'),
        ),
        // body: Center(child: buildFutureBuilder(searchCard)),
        body: Center(
          child: FutureBuilder<Scryfall>(
            future: searchCard,
            builder: (context, snapshot) {
              if (snapshot.hasData) {
                List<String> prices = [
                  '\$' + snapshot.data!.prices.usd.toString(),
                ];
                prices.removeWhere((item) => item.contains('null'));
                for (int index = 0; index < prices.length; index++) {
                  if (prices[index].contains('\$') && !checked1) {
                    prices.removeAt(index);
                  }
                }
                return ListView(
                  padding: const EdgeInsets.all(8),
                  children: <Widget>[
                    Container(
                      width: 1000,
                      height: 500,
                      color: Colors.white,
                      child: Center(
                        child: Image(
                          image: NetworkImage(snapshot.data!.imageUris.borderCrop!),
                        ),
                      ),
                    ),
                    ListView.builder(
                      scrollDirection: Axis.vertical,
                      shrinkWrap: true,
                      itemCount: prices.length,
                      itemBuilder: (BuildContext context, int index) {
                        return ListTile(
                          tileColor: Colors.white,
                          title: Text(prices[index]),
                          onTap: () {
                            launchURL(
                              (prices[index].contains('\$')
                                  ? snapshot.data!.purchaseUris.tcgplayer
                                  : (prices[index].contains('\€')
                                      ? snapshot.data!.purchaseUris.cardmarket
                                      : snapshot.data!.purchaseUris.cardhoarder)),
                            );
                          },
                          trailing: Wrap(spacing: 10, children: <Widget>[
                            new IconButton(
                              icon: Icon(Icons.shopping_bag_sharp),
                              onPressed: () {
                                con.goToWishlist();
                              },
                            ),
                          ]),
                        );
                      },
                    ),
                  ],
                );
                //return cardFutureBuilder();
              } else if (snapshot.hasError) {
                return const Text('Either card does not exist or search is too vague');
              }
              return const CircularProgressIndicator();
            },
          ),
        ),
        endDrawer: Drawer(
          child: ListView(
            padding: EdgeInsets.zero,
            children: <Widget>[
              const DrawerHeader(
                decoration: BoxDecoration(
                  color: Colors.blue,
                ),
                child: Text('Drawer Header'),
              ),
              CheckboxListTile(
                title: const Text("USD"),
                value: checked1,
                onChanged: (bool? value) {
                  setState(
                    () {
                      checked1 = value!;
                    },
                  );
                },
              ),
              ),
            ],
          ),
        ),
      ),
    );
  }
  void launchURL(String url) async {
    if (!await launch(url)) throw 'Could not launch $url';
  }
}
class _Controller {
  _GetProjectState state;
  _Controller(this.state) {
    user = state.widget.user;
  }
  late User _user;
  User get user => _user;
  set user(User user) {
    _user = user;
  }
  void goToWishlist() async {
    await Navigator.pushNamed(
      state.context,
      WishlistScreen.routeName,
      arguments: {
        ArgKey.user: user,
      },
    );
    state.render(() {});
  }
}

WISHLIST.DART

import 'package:demo_1/model/constant.dart';
import 'package:demo_1/model/scryfall_1.dart';
import 'package:demo_1/viewscreen/confirmation_screen.dart';
import 'package:firebase_auth/firebase_auth.dart';
import 'package:flutter/material.dart';
import 'results.dart';
import 'home_screen.dart';
class WishlistScreen extends StatefulWidget {
  static const routeName = '/WishlistScreen';
  const WishlistScreen({required this.user, Key? key}) : super(key: key);
  final User user;
  @override
  State<StatefulWidget> createState() {
    return _WishlistState();
  }
}
class _WishlistState extends State<WishlistScreen> {
  late _Controller con;
  late String profilePicture;
  Future<Scryfall>? searchCard;
  final TextEditingController _controller = TextEditingController();
  @override
  void initState() {
    super.initState();
    con = _Controller(this);
    profilePicture = widget.user.photoURL ?? 'No profile picture';
  }
  void render(fn) => setState(fn);
  @override
  Widget build(BuildContext context) {
    return Scaffold(
        floatingActionButton: FloatingActionButton(
          backgroundColor: Colors.cyan[400],
          onPressed: () => con.searchDialog(),
          child: const Icon(Icons.search),
        ),
        appBar: AppBar(
          title: const Text('Wish List'),
          centerTitle: true,
        ),
        body: Padding(
            padding: const EdgeInsets.symmetric(horizontal: 16.0),
            child: Column(
              crossAxisAlignment: CrossAxisAlignment.start,
              children: <Widget>[
                const SizedBox(height: 18.0),
                const CartItem(),
                const CartItem(),
                const CartItem(),
                const SizedBox(height: 21.0),
                MaterialButton(
                  onPressed: () {
                    setState(
                      () {
                        /*Navigator.push(
                            context,
                            MaterialPageRoute(
                              builder: (context) => const ConfirmationScreen(),
                            ));*/
                        con.confirmationScreen();
                      },
                    );
                  },
                  color: Colors.cyan,
                  height: 30.0,
                  minWidth: double.infinity,
                  shape: RoundedRectangleBorder(
                    borderRadius: BorderRadius.circular(10.0),
                  ),
                  child: const Text(
                    "CHECKOUT",
                    style: TextStyle(
                      color: Colors.white,
                      fontSize: 14.0,
                      fontWeight: FontWeight.bold,
                    ),
                  ),
                ),
                const SizedBox(height: 18.0),
              ],
            )));
  }
}

class CartItem extends StatelessWidget {
  const CartItem({
    Key? key,
  }) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return Container(
      color: const Color.fromARGB(255, 209, 206, 206),
      margin: const EdgeInsets.symmetric(vertical: 8.0),
      child: Row(
        children: <Widget>[
          Container(
              width: 80.0,
              height: 80.0,
              child: Center(
                  child: Container(
                      width: 60.0,
                      height: 60.0,
                      decoration: BoxDecoration(
                        image: const DecorationImage(
                          fit: BoxFit.scaleDown,
                          image: NetworkImage(
                            "https://c1.scryfall.com/file/scryfall-cards/large/front/b/e/be524227-8adc-4b01-808f-5ec4ab9dc09c.jpg?1568004322",
                          ),
                        ),
                        borderRadius: BorderRadius.circular(15.0),
                      )))),
          const SizedBox(width: 12.0),
          Expanded(
            child: Column(
              crossAxisAlignment: CrossAxisAlignment.start,
              children: <Widget>[
                Container(
                  width: 100.0,
                  child: const Text(
                    "Default Card Name",
                    style: TextStyle(
                      color: Colors.black,
                      fontWeight: FontWeight.bold,
                    ),
                  ),
                ),
                const SizedBox(height: 8.0),
                Row(
                  children: <Widget>[
                    Container(
                      width: 20.0,
                      height: 20.0,
                      decoration: BoxDecoration(
                        color: const Color.fromARGB(255, 146, 143, 143),
                        borderRadius: BorderRadius.circular(4.0),
                      ),
                      child: const Icon(
                        Icons.add,
                        color: Colors.white,
                        size: 15.0,
                      ),
                    ),
                    const Padding(
                      padding: EdgeInsets.symmetric(horizontal: 8.0),
                      child: Text(
                        "1",
                        style: TextStyle(
                          color: Colors.black,
                          fontSize: 16.0,
                          fontWeight: FontWeight.bold,
                        ),
                      ),
                    ),
                    Container(
                      width: 20.0,
                      height: 20.0,
                      decoration: BoxDecoration(
                        color: const Color.fromARGB(255, 37, 114, 177),
                        borderRadius: BorderRadius.circular(4.0),
                      ),
                      child: const Icon(
                        Icons.add,
                        color: Colors.white,
                        size: 15.0,
                      ),
                    ),
                    const Spacer(),
                    const Text(
                      "000.00",
                      style: TextStyle(
                        color: Colors.black,
                        fontWeight: FontWeight.bold,
                      ),
                    ),
                  ],
                ),
              ],
            ),
          ),
        ],
      ),
    );
  }
}

class _Controller {
  _WishlistState state;
  _Controller(this.state) {
    user = state.widget.user;
  }
  late User _user;
  User get user => _user;
  set user(User user) {
    _user = user;
  }
  void confirmationScreen() async {
    await Navigator.pushNamed(
      state.context,
      ConfirmationScreen.routeName,
      arguments: {
        ArgKey.user: user,
      },
    );
    state.render(() {});
  }
  Future? searchDialog() {
    return showDialog(
      context: state.context,
      builder: (BuildContext context) => AlertDialog(
        title: const Text('Search'),
        content: Container(
          height: 180,
          decoration: const BoxDecoration(
            borderRadius: BorderRadius.all(
              Radius.circular(10),
            ),
          ),
          padding: const EdgeInsets.all(10),
          child: Column(
            mainAxisAlignment: MainAxisAlignment.center,
            children: <Widget>[
              const Text('Search for a card:'),
              TextField(
                controller: state._controller,
                decoration: const InputDecoration(hintText: 'Enter Title'),
              ),
              OutlinedButton(
                onPressed: () {
                  state.setState(
                    () {
                      state.searchCard =
                          scryfallGet(state._controller.text.replaceAll(' ', '+'));

                      Navigator.push(
                          context,
                          MaterialPageRoute(
                              builder: (context) =>
                                  GetProjectScreen(user: state.widget.user),
                              settings: RouteSettings(arguments: state.searchCard)));
                    },
                  );
                },
                child: const Text('Search'),
              ),
            ],
          ),
        ),
      ),
    );
  }
}

SCRYFALL_1.DART

/*
 * parsed with Nicol Bolas
 */

class Scryfall {
  Scryfall({
    required this.object,
    required this.id,
    required this.oracleId,
    required this.multiverseIds,
    required this.mtgoId,
    required this.mtgoFoilId,
    required this.tcgplayerId,
    required this.cardmarketId,
    required this.arenaId,
    required this.name,
    required this.lang,
    required this.releasedAt,
    required this.uri,
    required this.scryfallUri,
    required this.layout,
    required this.highresImage,
    required this.imageStatus,
    required this.imageUris,
    required this.manaCost,
    required this.cmc,
    required this.typeLine,
    required this.oracleText,
    required this.power,
    required this.toughness,
    required this.colors,
    required this.colorIdentity,
    required this.keywords,
    required this.producedMana,
    required this.legalities,
    required this.games,
    required this.reserved,
    required this.foil,
    required this.nonfoil,
    required this.finishes,
    required this.oversized,
    required this.promo,
    required this.reprint,
    required this.variation,
    required this.setId,
    required this.scryfallSet,
    required this.setName,
    required this.setType,
    required this.setUri,
    required this.setSearchUri,
    required this.scryfallSetUri,
    required this.rulingsUri,
    required this.printsSearchUri,
    required this.collectorNumber,
    required this.digital,
    required this.rarity,
    required this.watermark,
    required this.flavorText,
    required this.cardBackId,
    required this.artist,
    required this.artistIds,
    required this.illustrationId,
    required this.borderColor,
    required this.frame,
    required this.securityStamp,
    required this.fullArt,
    required this.textless,
    required this.booster,
    required this.storySpotlight,
    required this.edhrecRank,
    required this.prices,
    required this.relatedUris,
    required this.purchaseUris,
  });

  String object;
  String id;
  String? oracleId; 
  List<num> multiverseIds; 
  num? mtgoId;
  num? mtgoFoilId;
  num? tcgplayerId;
  num? cardmarketId;
  num? arenaId;
  String name;
  String lang;
  DateTime releasedAt;
  String uri;
  String scryfallUri;
  String? layout; 
  bool highresImage;
  String imageStatus;
  ImageUris imageUris; 
  String? manaCost; 
  num? cmc; 
  String? typeLine;
  String? oracleText; 
  String? power; 
  String? toughness;
  List<String> colors; 
  List<String> colorIdentity;
  List<String> keywords;
  List<String> producedMana;
  Legalities legalities;
  List<String> games;
  bool reserved;
  bool foil;
  bool nonfoil;
  List<String> finishes;
  bool oversized;
  bool promo;
  bool reprint;
  bool variation;
  String setId;
  String? scryfallSet; 
  String setName;
  String setType;
  String setUri;
  String setSearchUri;
  String scryfallSetUri;
  String rulingsUri;
  String printsSearchUri;
  String collectorNumber;
  bool digital;
  String rarity;
  String? watermark; 
  String? flavorText; 
  String cardBackId;
  String artist;
  List<String> artistIds; 
  String? illustrationId; 
  String borderColor;
  String frame;
  String? securityStamp; 
  bool fullArt;
  bool textless;
  bool booster; 
  bool storySpotlight;
  num? edhrecRank; 
  Prices prices; 
  RelatedUris relatedUris;
  PurchaseUris purchaseUris;

  factory Scryfall.fromJson(Map<String, dynamic> json) => Scryfall(
        object: json["object"],
        id: json["id"],
        oracleId: json["oracle_id"],
        multiverseIds: json["multiverse_ids"] != null
            ? List<int>.from(json["multiverse_ids"].map((x) => x))
            : [],
        arenaId: json["arena_id"],
        mtgoId: json["mtgo_id"],
        mtgoFoilId: json["mtgo_foil_id"],
        tcgplayerId: json["tcgplayer_id"],
        cardmarketId: json["cardmarket_id"],
        name: json["name"],
        lang: json["lang"],
        releasedAt: DateTime.parse(json["released_at"]),
        uri: json["uri"],
        scryfallUri: json["scryfall_uri"],
        layout: json["layout"],
        highresImage: json["highres_image"],
        imageStatus: json["image_status"],
        imageUris: ImageUris.fromJson(json["image_uris"]),
        manaCost: json["mana_cost"],
        cmc: json["cmc"],
        typeLine: json["type_line"],
        oracleText: json["oracle_text"],
        power: json["power"],
        toughness: json["toughness"],
        colors: json["colors"] != null
            ? List<String>.from(json["colors"].map((x) => x))
            : [],
        colorIdentity: List<String>.from(json["color_identity"].map((x) => x)),
        keywords: List<String>.from(json["keywords"].map((x) => x)),
        producedMana: json["produced_mana"] != null
            ? List<String>.from(json["produced_mana"].map((x) => x))
            : [],
        legalities: Legalities.fromJson(json["legalities"]),
        games: List<String>.from(json["games"].map((x) => x)),
        reserved: json["reserved"],
        foil: json["foil"],
        nonfoil: json["nonfoil"],
        finishes: List<String>.from(json["finishes"].map((x) => x)),
        oversized: json["oversized"],
        promo: json["promo"],
        reprint: json["reprint"],
        variation: json["variation"],
        setId: json["set_id"],
        scryfallSet: json["set"],
        setName: json["set_name"],
        setType: json["set_type"],
        setUri: json["set_uri"],
        setSearchUri: json["set_search_uri"],
        scryfallSetUri: json["scryfall_set_uri"],
        rulingsUri: json["rulings_uri"],
        printsSearchUri: json["prints_search_uri"],
        collectorNumber: json["collector_number"],
        digital: json["digital"],
        rarity: json["rarity"],
        watermark: json["watermark"],
        flavorText: json["flavor_text"],
        cardBackId: json["card_back_id"],
        artist: json["artist"],
        artistIds: List<String>.from(json["artist_ids"].map((x) => x)),
        illustrationId: json["illustration_id"],
        borderColor: json["border_color"],
        frame: json["frame"],
        securityStamp: json["security_stamp"],
        fullArt: json["full_art"],
        textless: json["textless"],
        booster: json["booster"],
        storySpotlight: json["story_spotlight"],
        edhrecRank: json["edhrec_rank"],
        prices: Prices.fromJson(json["prices"]),
        relatedUris: json["related_uris"] != null
            ? RelatedUris.fromJson(json["related_uris"])
            : RelatedUris(
                gatherer: "",
                tcgplayerInfiniteArticles: "",
                tcgplayerInfiniteDecks: "",
                edhrec: "",
                mtgtop8: ""),
        purchaseUris: json["purchase_uris"] != null
            ? PurchaseUris.fromJson(json["purchase_uris"])
            : PurchaseUris(tcgplayer: "", cardmarket: "", cardhoarder: ""),
      );

  Map<String, dynamic> toJson() => {
        "object": object,
        "id": id,
        "oracle_id": oracleId,
        "multiverse_ids": List<dynamic>.from(multiverseIds.map((x) => x)),
        "mtgo_id": mtgoId,
        "mtgo_foil_id": mtgoFoilId,
        "tcgplayer_id": tcgplayerId,
        "cardmarket_id": cardmarketId,
        "name": name,
        "lang": lang,
        "released_at":
            "${releasedAt.year.toString().padLeft(4, '0')}-${releasedAt.month.toString().padLeft(2, '0')}-${releasedAt.day.toString().padLeft(2, '0')}",
        "uri": uri,
        "scryfall_uri": scryfallUri,
        "layout": layout,
        "highres_image": highresImage,
        "image_status": imageStatus,
        "image_uris": imageUris.toJson(),
        "mana_cost": manaCost,
        "cmc": cmc,
        "type_line": typeLine,
        "oracle_text": oracleText,
        "power": power,
        "toughness": toughness,
        "colors": List<dynamic>.from(colors.map((x) => x)),
        "color_identity": List<dynamic>.from(colorIdentity.map((x) => x)),
        "keywords": List<dynamic>.from(keywords.map((x) => x)),
        "legalities": legalities.toJson(),
        "games": List<dynamic>.from(games.map((x) => x)),
        "reserved": reserved,
        "foil": foil,
        "nonfoil": nonfoil,
        "finishes": List<dynamic>.from(finishes.map((x) => x)),
        "oversized": oversized,
        "promo": promo,
        "reprint": reprint,
        "variation": variation,
        "set_id": setId,
        "set": scryfallSet,
        "set_name": setName,
        "set_type": setType,
        "set_uri": setUri,
        "set_search_uri": setSearchUri,
        "scryfall_set_uri": scryfallSetUri,
        "rulings_uri": rulingsUri,
        "prints_search_uri": printsSearchUri,
        "collector_number": collectorNumber,
        "digital": digital,
        "rarity": rarity,
        "watermark": watermark,
        "flavor_text": flavorText,
        "card_back_id": cardBackId,
        "artist": artist,
        "artist_ids": List<dynamic>.from(artistIds.map((x) => x)),
        "illustration_id": illustrationId,
        "border_color": borderColor,
        "frame": frame,
        "security_stamp": securityStamp,
        "full_art": fullArt,
        "textless": textless,
        "booster": booster,
        "story_spotlight": storySpotlight,
        "edhrec_rank": edhrecRank,
        "prices": prices.toJson(),
        "related_uris": relatedUris.toJson(),
        "purchase_uris": purchaseUris.toJson(),
      };
}

class ImageUris {
  ImageUris({
    required this.small,
    required this.normal,
    required this.large,
    required this.png,
    required this.artCrop,
    required this.borderCrop,
  });

  String? small;
  String? normal;
  String? large;
  String? png;
  String? artCrop;
  String? borderCrop;

  factory ImageUris.fromJson(Map<String, dynamic> json) => ImageUris(
        small: json["small"],
        normal: json["normal"],
        large: json["large"],
        png: json["png"],
        artCrop: json["art_crop"],
        borderCrop: json["border_crop"],
      );

  Map<String, dynamic> toJson() => {
        "small": small,
        "normal": normal,
        "large": large,
        "png": png,
        "art_crop": artCrop,
        "border_crop": borderCrop,
      };
}

class Legalities {
  Legalities({
    required this.standard,
    required this.future,
    required this.historic,
    required this.gladiator,
    required this.pioneer,
    required this.modern,
    required this.legacy,
    required this.pauper,
    required this.vintage,
    required this.penny,
    required this.commander,
    required this.brawl,
    required this.historicbrawl,
    required this.alchemy,
    required this.paupercommander,
    required this.duel,
    required this.oldschool,
    required this.premodern,
  });

  String? standard;
  String? future;
  String? historic;
  String? gladiator;
  String? pioneer;
  String? modern;
  String? legacy;
  String? pauper;
  String? vintage;
  String? penny;
  String? commander;
  String? brawl;
  String? historicbrawl;
  String? alchemy;
  String? paupercommander;
  String? duel;
  String? oldschool;
  String? premodern;

  factory Legalities.fromJson(Map<String, dynamic> json) => Legalities(
        standard: json["standard"],
        future: json["future"],
        historic: json["historic"],
        gladiator: json["gladiator"],
        pioneer: json["pioneer"],
        modern: json["modern"],
        legacy: json["legacy"],
        pauper: json["pauper"],
        vintage: json["vintage"],
        penny: json["penny"],
        commander: json["commander"],
        brawl: json["brawl"],
        historicbrawl: json["historicbrawl"],
        alchemy: json["alchemy"],
        paupercommander: json["paupercommander"],
        duel: json["duel"],
        oldschool: json["oldschool"],
        premodern: json["premodern"],
      );

  Map<String, dynamic> toJson() => {
        "standard": standard,
        "future": future,
        "historic": historic,
        "gladiator": gladiator,
        "pioneer": pioneer,
        "modern": modern,
        "legacy": legacy,
        "pauper": pauper,
        "vintage": vintage,
        "penny": penny,
        "commander": commander,
        "brawl": brawl,
        "historicbrawl": historicbrawl,
        "alchemy": alchemy,
        "paupercommander": paupercommander,
        "duel": duel,
        "oldschool": oldschool,
        "premodern": premodern,
      };
}

class Prices {
  Prices({
    required this.usd,
    required this.usdFoil,
    required this.usdEtched,
    required this.eur,
    required this.eurFoil,
    required this.tix,
  });

  String? usd;
  String? usdFoil;
  dynamic usdEtched;
  String? eur;
  String? eurFoil;
  String? tix;

  factory Prices.fromJson(Map<String, dynamic> json) => Prices(
        usd: json["usd"],
        usdFoil: json["usd_foil"],
        usdEtched: json["usd_etched"],
        eur: json["eur"],
        eurFoil: json["eur_foil"],
        tix: json["tix"],
      );

  Map<String, dynamic> toJson() => {
        "usd": usd,
        "usd_foil": usdFoil,
        "usd_etched": usdEtched,
        "eur": eur,
        "eur_foil": eurFoil,
        "tix": tix,
      };
}

class PurchaseUris {
  PurchaseUris({
    required this.tcgplayer,
    required this.cardmarket,
    required this.cardhoarder,
  });

  String tcgplayer;
  String cardmarket;
  String cardhoarder;

  factory PurchaseUris.fromJson(Map<String, dynamic> json) => PurchaseUris(
        tcgplayer: json["tcgplayer"],
        cardmarket: json["cardmarket"],
        cardhoarder: json["cardhoarder"],
      );

  Map<String, dynamic> toJson() => {
        "tcgplayer": tcgplayer,
        "cardmarket": cardmarket,
        "cardhoarder": cardhoarder,
      };
}
class RelatedUris {
  RelatedUris({
    required this.gatherer,
    required this.tcgplayerInfiniteArticles,
    required this.tcgplayerInfiniteDecks,
    required this.edhrec,
    required this.mtgtop8,
  });

  String gatherer;
  String tcgplayerInfiniteArticles;
  String tcgplayerInfiniteDecks;
  String edhrec;
  String mtgtop8;

  factory RelatedUris.fromJson(Map<String, dynamic> json) => RelatedUris(
        gatherer: json["gatherer"],
        tcgplayerInfiniteArticles: json["tcgplayer_infinite_articles"],
        tcgplayerInfiniteDecks: json["tcgplayer_infinite_decks"],
        edhrec: json["edhrec"],
        mtgtop8: json["mtgtop8"],
      );

  Map<String, dynamic> toJson() => {
        "gatherer": gatherer,
        "tcgplayer_infinite_articles": tcgplayerInfiniteArticles,
        "tcgplayer_infinite_decks": tcgplayerInfiniteDecks,
        "edhrec": edhrec,
        "mtgtop8": mtgtop8,
      };
}


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source