toJson method

Map<String, dynamic> toJson()

Converts this GPayParams instance to a JSON map.

Implementation

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