toJson method

Map<String, dynamic> toJson()

Converts this ApplePayParams instance to a JSON map.

Implementation

Map<String, dynamic> toJson() {
  return {
    'buttonType': buttonType?.name,
    'buttonStyle': buttonStyle?.toJson(),
  };
}