toMap method
Implementation
Map<String, dynamic> toMap() {
return {
'handle': handle,
'order_nsu': orderNSU,
'redirect_url': redirectUrl,
'webhook_url': webhookUrl,
'customer': customer?.toMap(),
'address': address?.toMap(),
'items': items.map((item) => item.toMap()).toList(),
};
}