toJson method

Map<String, dynamic> toJson()

Converts the InitiateIvorypayTransaction object to a JSON map.

Returns a map representation of the transaction object in JSON format.

Implementation

Map<String, dynamic> toJson() {
  final map = <String, dynamic>{};
  map['baseFiat'] = baseFiat;
  map['amount'] = amount;
  map['crypto'] = crypto;
  map['email'] = email;
  map['authorization'] = authorization;
  map['metadata'] = metadata;
  return map;
}