toJson method

String toJson()

Implementation

String toJson() {
  return json.encode({
    "amount": amount!.toMap(),
    "redirectUrl": redirectUrl,
    "metadata": json.encode(metaData),
    "description": description,
    "webhookUrl": webhookUrl,
    "method": method
  });
}