toJSON method
Implementation
Map<String, dynamic> toJSON() {
return <String, dynamic>{
//'id': id, ///NOT IN USE WITH FIREBASE
'description': description,
'toUser': toUser.toInvoiceJSON(),
'orderId': orderId,
'createdTime': createdTime,
'transaction': transaction?.toJSON(),
'address': address?.toJSON(),
};
}