toJson method
Implementation
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = <String, dynamic>{};
data['id'] = id;
data['status'] = status;
data['amount'] = amount;
data['fee'] = fee;
data['currency'] = currency;
data['refunded'] = refunded;
data['refundedAt'] = refundedAt;
data['captured'] = captured;
data['capturedAt'] = capturedAt;
data['voidedAt'] = voidedAt;
data['description'] = description;
data['invoiceId'] = invoiceId;
data['ip'] = ip;
data['callbackUrl'] = callbackUrl;
data['createdAt'] = createdAt;
data['updatedAt'] = updatedAt;
data['metadata'] = metadata;
data['source'] = source;
data['type'] = type;
data['message'] = message;
data['error'] = error;
return data;
}