toJson method

Map<String, dynamic> toJson()

Converts the DeviceInfo instance to a JSON object.

Implementation

Map<String, dynamic> toJson() => {
      'deviceId': deviceId,
      'deviceName': deviceName,
      'deviceBrand': deviceBrand,
      'osVersion': osVersion,
      'manufacturer': manufacturer,
      'model': model,
      'appVersionName': appVersionName,
      'appVersionCode': appVersionCode,
    };