UpdateConnectionState.fromJson constructor

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

Parse from a json

Implementation

factory UpdateConnectionState.fromJson(Map<String, dynamic> json) =>
    UpdateConnectionState(
      state: ConnectionState.fromJson(json['state']),
      extra: json['@extra'],
      clientId: json['@client_id'],
    );