CreateSessionResponse.fromJson constructor

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

Implementation

factory CreateSessionResponse.fromJson(Map<String, dynamic> json) {
  return CreateSessionResponse(
    sessionId: json['session_id'],
    url: json['url'],
    qrBase64Png: json['qr_base64_png'],
    branding: json['branding'] != null
        ? Branding.fromJson(json['branding'])
        : null,
    websocketURL: json['websocket_url'],
  );
}