RegisterResponse.fromJson constructor

RegisterResponse.fromJson(
  1. Map<String, Object?> json
)

Implementation

RegisterResponse.fromJson(Map<String, Object?> json)
    : accessToken =
          ((v) => v != null ? v as String : null)(json['access_token']),
      deviceId = ((v) => v != null ? v as String : null)(json['device_id']),
      expiresInMs =
          ((v) => v != null ? v as int : null)(json['expires_in_ms']),
      noDe = ((v) => v != null ? v as String : null)(json['home_server']),
      refreshToken =
          ((v) => v != null ? v as String : null)(json['refresh_token']),
      userId = json['user_id'] as String;