toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final _json = <String, dynamic>{};
  if (messageVersion != null) {
    _json[r'MessageVersion'] = messageVersion;
  }
  if (timeStamp != null) {
    _json[r'TimeStamp'] = timeStamp;
  }
  if (iOTId != null) {
    _json[r'IOT_id'] = iOTId;
  }
  if (orgId != null) {
    _json[r'OrgId'] = orgId;
  }
  if (protocol != null) {
    _json[r'protocol'] = protocol;
  }
  _json[r'plc_array'] = plcArray;
  return _json;
}