toJson method
Allows you to serialize object.
Implementation
Map<String, dynamic> toJson() => {
"overallStatus": overallStatus.value,
"optical": optical.value,
"rfid": rfid.value,
"portrait": portrait.value,
"stopList": stopList.value,
"detailsOptical": detailsOptical.toJson(),
"detailsRFID": detailsRFID.toJson(),
}.clearNulls();