UserPushTokenUnregisterRequest constructor Null safety
- {required PushTokenType type,
- required String token,
- String? userId}
Implementation
UserPushTokenUnregisterRequest({
required PushTokenType type,
required String token,
String? userId,
}) : super(userId: userId) {
final typeString = type == PushTokenType.fcm ? 'gcm' : type.asString();
url = 'users/${userId ?? state.userId}/push/$typeString/$token';
}