toJson method
Implementation
Map<String, dynamic> toJson({bool local = false, bool migrate = false}) {
var _t = local ? time.toIso8601String() : time; // DateTime.now().toUtc();
// if (migrate)
// _t = time;
var _q = local ? timeModify.toIso8601String() : DateTime.now().toUtc();
if (migrate)
_q = timeModify;
// if (id == "bI9BRZ3ao6CUtPIkjwBN")
// dprint("to json id $id $_t}");
return {
't': _t,
'q': _q,
's': status,
'd': delete,
'c': customerId,
'b': customerName,
'p': providerName.map((i) => i.toJson()).toList(),
'r': providerId,
'a': countProducts,
'w': subtotal,
'e': discount,
'm': toAdmin,
'z': toDriver,
'y': tax,
'f': total,
'g': couponId,
'h': paymentMethod,
'k': finished,
'o': viewByAdmin,
'i': viewByProvider,
'x': providerImage,
'l': customerImage,
'v': name,
};
}