AuthData.fromJson constructor

AuthData.fromJson(
  1. Map json
)

Creates a new instance from a json map.

Implementation

factory AuthData.fromJson(Map json) => AuthData(
      auth: json["auth"] ?? '',
      channelData: json["channel_data"] != null
          ? ChannelData.fromJsonString(json["channel_data"])
          : null,
      sharedSecret: json["shared_secret"],
    );