toJson method

Map<String, dynamic> toJson ()

Implementation

Map<String, dynamic> toJson() {
  return {
    'id': this.id.toString(),
    'wallet': {
      'label': this.label,
      'currency': this.currency.toString(),
      'type': this.type.toString(),
    },
    'detail': this.detail.map(
          m4eWalletDetail: (detail) => detail.toJson(),
          mobileMoneyWalletDetail: (detail) => detail.toJson(),
        ),
  };
}