AuthenticationResponse.fromJson constructor
AuthenticationResponse.fromJson(
- Map<String, dynamic> json
)
Implementation
factory AuthenticationResponse.fromJson(Map<String, dynamic> json) {
return AuthenticationResponse(
accessToken: json['access_token'] as String,
deviceId: json['device_id'] as String,
expiresIn: json['expires_in'] as int,
organizationId: json['organization_id'] as String,
refreshToken: json['refresh_token'] as String,
tokenType: json['token_type'] as String,
userId: json['user_id'] as String?,
);
}