toJson method

Map<String, dynamic> toJson()

Converts the BrowserProperties to a JSON object. This is used to convert an instance of BrowserProperties into a JSON object that can be sent to the server.

Implementation

Map<String, dynamic> toJson() {
  return {
    'userAgent': userAgent,
    'name': name,
    'version': version,
  };
}