toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() => {
      'address': address,
      'username': username,
      'stripeExists': stripeExists,
      'coins': coins.map((Balance balance) => balance.toJson()).toList(),
      'items': items.map((Item item) => item.toProto3Json()).toList(),
      'supportedCoins':
          supportedCoins.map((supportedCoin) => supportedCoin).toList()
    };