NegotiateResponse.fromJson constructor
Implementation
NegotiateResponse.fromJson(Map<String, dynamic> json)
: this.connectionId = json['connectionId'],
this.connectionToken = json['connectionToken'],
this.negotiateVersion = json['negotiateVersion'],
this.url = json['url'],
this.accessToken = json['accessToken'],
this.error = json['error'] {
availableTransports = [];
final List<dynamic>? transports = json['availableTransports'];
if (transports == null) {
return;
}
for (var i = 0; i < transports.length; i++) {
availableTransports!.add(AvailableTransport.fromJson(transports[i]));
}
}