User.fromJson constructor

User.fromJson(
  1. Map<String, dynamic> json,
  2. String baseUrl,
  3. String appToken
)

Implementation

User.fromJson(Map<String, dynamic> json, this.baseUrl, this.appToken)
    : jwt = json["jwt"],
      refreshToken = json["refreshToken"],
      userId = json["userId"],
      deviceId = json["deviceId"],
      mfa = json["mfa"],
      _privateDeviceKey = json["privateDeviceKey"],
      _publicDeviceKey = json["publicDeviceKey"],
      _signDeviceKey = json["signDeviceKey"],
      _verifyDeviceKey = json["verifyDeviceKey"],
      _exportedPublicDeviceKey = json["exportedPublicDeviceKey"],
      _exportedVerifyDeviceKey = json["exportedVerifyDeviceKey"],
      groupInvites = [],
      _userIdentifier = json["userIdentifier"];