toMap method

Map<String, dynamic> toMap()

Converts the config to a map for the method channel.

Implementation

Map<String, dynamic> toMap() {
  return {
    'environment': environment.name,
    'merchantGatewayId': merchantGatewayId,
    'isEmailRequired': isEmailRequired,
    'billingAddressConfig': billingAddressConfig.toMap(),
  };
}