toJSON method

Map<String, dynamic> toJSON()

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(),
  };
}