toJson method

Map<String, dynamic> toJson()

Converts the Order instance to a JSON object.

Implementation

Map<String, dynamic> toJson() {
  return {
    'currency': currency,
    'amount': amount,
    'email': email,
  };
}