toJson method

Map<String, dynamic> toJson()

Allows you to serialize object.

Implementation

Map<String, dynamic> toJson() {
  Map<String, dynamic> result = {};

  result["overallStatus"] = overallStatus.value;
  result["optical"] = optical.value;
  result["rfid"] = rfid.value;
  result["portrait"] = portrait.value;
  result["stopList"] = stopList.value;
  result["detailsOptical"] = detailsOptical.toJson();
  result["detailsRFID"] = detailsRFID.toJson();

  return result;
}