M4eWallet.fromJson constructor

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

Implementation

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