EventSystemProperties.fromJson constructor

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

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

Implementation

factory EventSystemProperties.fromJson(Map<String, dynamic> json) {
  return EventSystemProperties(
    appVersion: json['appVersion'],
    ipAddress: json['ipAddress'],
    device: DeviceProperties.fromJson(json['device']),
    operatingSystem: OperatingSystemProperties.fromJson(json['os']),
  );
}