Wallet.fromJson constructor

Wallet.fromJson(Map<String, dynamic> json)

Implementation

factory Wallet.fromJson(Map<String, dynamic> json) {
  return Wallet(
    id: json['id'],
    walletInfo: WalletInfo(
      label: json['wallet']['label'],
      currency: json['wallet']['currency'],
      type: WalletType.parse(json['wallet']['type']),
    ),
  );
}