BrowserProperties.fromJson constructor

BrowserProperties.fromJson(
  1. Map<String, dynamic> json
)

Creates a new instance of BrowserProperties from a JSON object. This is used to convert a JSON object from the server into an instance of BrowserProperties.

Implementation

factory BrowserProperties.fromJson(Map<String, dynamic> json) {
  return BrowserProperties(
    userAgent: json['userAgent'],
    name: json['name'],
    version: json['version'],
  );
}