toJson method
Implementation
Map<String, dynamic> toJson() => {
'deviceType': deviceType,
'deviceId': deviceId,
'deviceName': deviceName,
'ipAddress': ipAddress,
'isDefaultPasswordSet': '$isDefaultPasswordSet',
'knownPassword': knownPassword,
'currentPasswordNumber': '$currentPasswordNumber',
'controlActions': controlActions,
'measureActions': measureActions,
};